1

When I use contact_us gem in my rails app it uses application's layout. but I want to use another layout for contact-us page. How can I do that?

Kruupös
  • 5,097
  • 3
  • 27
  • 43
Ahmad
  • 129
  • 12

1 Answers1

1

This is something that you can do from within the respective controller, you can specify an alternate layout template from within the action specifically.

# controller that calls the page
def action
  render :layout => 'other'
end
Tinus Wagner
  • 927
  • 1
  • 7
  • 15