Ruby on Rails - How do I render an action without the application layout?

Viewed 49339

I have a rails app and I want to render an action without using my application layout (which has page header / footer stuff in it).

How could I go about doing this?

2 Answers

For Rails 5, in the controller, for the specific action:

def action
  render layout: false
end
Related