Rails not use application.html.erb

ruby-on-rails, ruby-on-rails-3, view

Solution

At the end of your controller action, add:

render :layout => false

Problem

I know that by default, views in Rails use the template provided in `application.html.erb`. However, there's one view that I wouldn't like to use the template provided in `application.html.erb`, but rather write all the HTML in that view itself. Is that possible to do?

Original source