Ruby and Rails: Show login form content of one view into the another view files modal popup
Ruby and Rails: Show login form content of one view into the another view files modal popup
I want to open modal on button click of the coursedetail.html.erb
the file which is done using a jquery modal.
But now I want to show my login.html.erb file content in this modal so that user will be able to login directly from the modal
login form.
coursedetail.html.erb
modal
1 Answer
1
You can you partial
to render the view in rails. To know more about partial click here
partial
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Put your login in a partial and render it in the modal.
– Marc Talbot
Jun 29 at 10:49