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





Put your login in a partial and render it in the modal.
– Marc Talbot
Jun 29 at 10:49




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.

Comments

Popular posts from this blog

paramiko-expect timeout is happening after executing the command

how to run turtle graphics in Colaboratory

Export result set on Dbeaver to CSV