Ruby on Rails Tuesday, October 6, 2015

On Tue, Oct 6, 2015 at 11:57 AM, tom <tomabroad@gmail.com> wrote:

> 2) routes:
> #resource :animal
> resources :tiger , :controller => 'animals', type: 'tigler'
> resources :lion , :controller => 'animals', type: 'lion'
>
> 3) index.html
> link_to 'show', animal >>undefined method `animal_path'

animal_path won't work because you've commented out resource :animal
(which should be plural anyway, as should the others).

--
Dave Aronson, consulting software developer of Codosaur.us,
PullRequestRoulette.com, Blog.Codosaur.us, and Dare2XL.com.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAHxKQiioyE-S4WZzjG8E-ktu0CG3YvJ-_TugLrTeu_%2B3AzGsYg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment