Jump to content


Chapter 4 "routing Error"

  • Please log in to reply
2 replies to this topic



    New Member

  • Members
  • Pip
  • 2 posts

Posted 10 May 2011 - 02:03 PM


I am currently working throught the book, using rails 3.0.7. I have realised by now that the book is based on Rails 2, so the following error might have something to do with that.
I keep getting a weird routing error when trying to launch the form for entering your name. The code for the view and the controller is:


<head><title>Hello <%=h @name %></title></head>

<h1>Hello <%=h @name %></h1>

<% form_tag :action => 'sign_in' do %>
   <p>Enter your name:
   <%= text_field_tag 'visitor_name', @name %></p>

   <%= submit_tag 'Sign in' %>

<% end %>

class EntriesController < ApplicationController
    def sign_in
        @name = params[:visitor_name]

With this constellation I get the error: "Routing Error uninitialized constant Guestbook::Entries"
when navigating to "http://localhost:300...tbook/entries/"

Any ideas what might be causing this? I am stuck.

#2 Loneu88


    New Member

  • Members
  • Pip
  • 5 posts

Posted 23 May 2012 - 01:32 AM

Yeah, I'm facing same problem too during use of rails 3.0.7. I have search for solution in online but filed to get proper solution for this problem.

#3 jespinto


    Active Member

  • Members
  • PipPip
  • 16 posts
  • Gender:Male

Posted 08 July 2013 - 05:22 AM

I had the same problem too. Couldn't find the solution anywhere. ow hunting in forums

agile software development

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users