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.
Tweet