Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8392131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:26:29+00:00 2026-06-09T19:26:29+00:00

Create a new controller called User. Create the following pages for it: index, register,

  • 0
  1. 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.

  2. 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.

  3. 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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:26:30+00:00Added an answer on June 9, 2026 at 7:26 pm

    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 logout

    Go to your application.html.erb and edit it:

      ...
      <div id="nav">
        <%= link_to_unless_current "Home",  :controller => "site", 
                                            :action => "index" %> | 
        <%= link_to_unless_current "About", :controller => "site", 
                                            :action => "about" %> | 
        <%= link_to_unless_current "Help",  :controller => "site", 
                                            :action => "help" %> |
    
        #include the new actions as the example below:
        <%= link_to_unless_current "Login", :controller => "user", 
                                            :action => "login" %> | 
    
     </div>
    

    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

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a model called Details, and two controller methods new and create. New
I would like to create a new controller that will allow the admin user
When I create a new controller in Visual Studio with MVC It generate automatically
What makes you determine to create a new controller instead of adding more actions
I have controller with action new , and I want it to create ActiveRecord::Base
I'm trying to create a second view controller and link it to a new
Hi I have a controller named places with some actions like view, new, create
I have a resource 'User'. In it's controller there is an action 'choose'. Index
I have a model called DefaultCompany that has no controller, instead I create it
I have a 'Create new event' page where the user can click 'Back' on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.