Hi, I am trying to work through the Ruby on Rails 3 Tutorial book. I got stuck on chapter 5, trying to get the routes.rb file changed into: match ''/signup'', :to => ''users#new'' match ''/contact'', :to => ''pages#contact'' match ''/about'', :to => ''pages#about'' match ''/help'', :to => ''pages#help'' root :to => ''pages#home'' It used to be "get" instead of "match". I have made the changes to the other files the book recommends, but the pages have since stopped loading and the tests are failing. rspec ./spec/controllers/pages_controller_spec.rb:27 # PagesController GET ''contact'' should be successful rspec ./spec/controllers/pages_controller_spec.rb:31 # PagesController GET ''contact'' should have the right title rspec ./spec/controllers/pages_controller_spec.rb:49 # PagesController GET ''help'' should be successful rspec ./spec/controllers/pages_controller_spec.rb:53 # PagesController GET ''help'' should have the right title rspec ./spec/controllers/pages_controller_spec.rb:38 # PagesController GET ''about'' should be successful rspec ./spec/controllers/pages_controller_spec.rb:42 # PagesController GET ''about'' should have the right title rspec ./spec/controllers/pages_controller_spec.rb:14 # PagesController GET ''home'' should be successful rspec ./spec/controllers/pages_controller_spec.rb:19 # PagesController GET ''home'' should have the right title rspec ./spec/controllers/users_controller_spec.rb:7 # UsersController GET ''new'' returns http success rspec ./spec/controllers/users_controller_spec.rb:11 # UsersController GET ''new'' should have the right title rspec ./spec/requests/layout_links_spec.rb:10 # LayoutLinks should have a Contact page at ''/contact'' rspec ./spec/requests/layout_links_spec.rb:15 # LayoutLinks should have an About page at ''/About'' rspec ./spec/requests/layout_links_spec.rb:20 # LayoutLinks should have a Help page at ''/help'' rspec ./spec/requests/layout_links_spec.rb:5 # LayoutLinks should have a Home page at ''/'' rspec ./spec/requests/layout_links_spec.rb:25 # LayoutLinks should have a signup page at ''/signup'' HELP!!! Sam -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/d3Y0BKTuzhEJ. For more options, visit https://groups.google.com/groups/opt_out.
On 31 October 2012 20:29, Samantha Cabral <samantha.grimm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I am trying to work through the Ruby on Rails 3 Tutorial book. I got stuck > on chapter 5, trying to get the routes.rb file changed into: > > match ''/signup'', :to => ''users#new'' > match ''/contact'', :to => ''pages#contact'' > match ''/about'', :to => ''pages#about'' > match ''/help'', :to => ''pages#help'' > root :to => ''pages#home'' > > It used to be "get" instead of "match". I have made the changes to the other > files the book recommends, but the pages have since stopped loading and the > tests are failing. > rspec ./spec/controllers/pages_controller_spec.rb:27 # PagesController GET > ''contact'' should be successfulYou should have a more useful message than that somewhere, possibly in log/test.log if nowhere else. Otherwise what message do you get when you try to load one of the pages in a browser? Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.