I'm making an AAJX request to an action in a controller. I fetch the rendered HTML and display it in a tag in the current page. The view that I'm POSTing to, renders the layout with the default application.erb. I would like rails to use the default layout for the controller/action but not render the main application.erb. How do I do this?
You can tell render
not to use your application's layout using render :layout => false
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With