Quantcast
Channel: Kurt Opel
Viewing all articles
Browse latest Browse all 11

Using Application Layout with Ruby on Rails

$
0
0

Anyone who is at least cassualy aquainted with the web framework Ruby on Rails, knows how simple it is to develop a simple easy to use interface to a database model. However, I was impressed at how easily one could create an application layout or template of my site that included navigation, headers and footers on each page of the site.

To create an Application Layout in your Rails application, create a file at /path/to/your/application/app/views/layouts/application.html.erb. Put any headers, footers and navigational items and include the code <%= yield %> where you want the controllers to render their content.


Viewing all articles
Browse latest Browse all 11

Latest Images

Trending Articles





Latest Images