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:
<html> <head><title>Hello <%=h @name %></title></head> <body> <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 %> </body> </html>
class EntriesController < ApplicationController def sign_in @name = params[:visitor_name] end end
With this constellation I get the error: "Routing Error uninitialized constant Guestbook::Entries"
when navigating to "http://localhost:3000/guestbook/entries/"
Any ideas what might be causing this? I am stuck.