its just pseudo-code. but if i leave the base resource in there, then it give me an /animal/id route which i dont want. i want either /tiger/id or lion/id
thx On Tue, Oct 6, 2015 at 12:03 PM, Dave Aronson < [email protected]> wrote: > On Tue, Oct 6, 2015 at 11:57 AM, tom <[email protected]> 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 [email protected]. > To post to this group, send email to [email protected]. > 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. > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CADQqhMeC2BT1%2B7aBJchZyOPvJxJNe_7bmmyRHzsbdF3qsz6YMg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

