Changing contact_us default layout

39 views Asked by At

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?

1

There are 1 answers

0
Tinus Wagner On BEST ANSWER

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