19Jan

Learning Rails – Step 2

Hi all,
in this second step we’ll define the layout of the site and the controller to manage the informative pages.
First of all define the application layout:







I defined a simple layout with an header, a footer and a central area.
Into the header there will be the navigation bar. Colors and fonts are defined in a css file.



The public pages of the site will be managed by a controller. To create the ‘pages’ controller we can use the ‘generators’ window in RadRails.



The controller will have an action (method) for each page it has to manage: home, support, about.
The rake command also generates the necessary views to manage the 3 pages.



Filling the 3 views with appropriate html code we can obtain the below result.


You can download the source developed till now clicking here.
In the next step we will deal the user management.

-->

One Response to “Learning Rails – Step 2”

  1. [...] Learning Rails – Step 2 (code4dotnet.com) [...]

Leave a Reply