Ruby on Rails Wednesday, October 31, 2012

On 31 October 2012 20:29, Samantha Cabral <samantha.grimm@gmail.com> 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 successful

You 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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment