Today I Learned

hashrocket A Hashrocket project

Ignoring Rails Application Layout

If you want to render a view that is not wrapped with your application layout, in your controller action simply use:

render layout: false

This can be helpful when creating things like API endpoints or JavaScript actions where application layouts can get in the way.

Looking for help? Hashrocket has been an industry leader in Ruby on Rails since 2008. Rails is a core skill for each developer at Hashrocket, and we'd love to take a look at your project. Contact us and find out how we can help you.