Alex Rivera | Logout

Rails: how to add a header to every page

Asked 2010-05-25T01:26:52.543
19

What is the standard way to add a header and footer to every view in a Rails app?

Edit
Report

1 Answer

9

put the header and footer into the application layout which can be found at app/views/layouts/application.html.erb.You may have to create this file first.

answered 2010-05-25T01:28:12.460

Your Answer