ben
ben

Reputation: 29777

Can I have a page in my Ruby on Rails app that doesn't use my application.html.erb template?

I'm using application.html.erb in the views/layouts folder of my Ruby on Rails web app as a template. But there's one page in which I don't want the template to be used. Is this possible?

Upvotes: 0

Views: 88

Answers (1)

alex.zherdev
alex.zherdev

Reputation: 24164

Sure, just do

render :layout => false

in the bottom of your action.

Upvotes: 4

Related Questions