We've moved discussions to Discord

How to show a view inside a modal?

Borja Soler
I'm learning rails while I use Jumpstart I would like to know how can I show a view inside a modal. 
For example here in Jumpsart. How can I show the new discussion view inside a modal.

Thank you so much! 
Andrew Hodson
A model maps to a database table. Do you mean how do you display the "new discussion" view? 
Borja Soler
Yes, display the new discussion view. In a model without the necessity to go to another page.
Andrew Hodson
you can't show the "view" in the "model". On the show.html.erb (if you used the scaffold). you need to add the "_form.htm.erb" also make sure you add a new @disscusion under the "show" controller action.
Notifications
You’re not receiving notifications from this thread.