-
Create a new controller called User. Create the following pages for
it: index, register, login and logout. It’s just enough to use a
generator script to acomplish this. -
Add new items into the main menu: Register and Login. The main menu
is defined in the application layout file
app\views\layouts\application.html.erb. Notice that we are not yet
adding a menu link to the index page at this stage. -
Try out your application. If the new pages don’t work, restart
Mongrel web application.
what is the second point? How should i do it?
Jarek Francik was my teacher at Kingston University…
I did this tutorial a few years ago. The second step is to add the links for the new actions you have generated:
index, register, login and logoutGo to your application.html.erb and edit it:
Also note that this tutorial is for Rails 2.3.9. I suggest you to take a look on his video about rails 3 and shopping cart: http://ecommerce2011.tumblr.com/post/11687504985/lecture-4-techniques-part-2-the-shop-on-rails