Sent from my iPhone On Apr 13, 2011, at 6:42 AM, Vladimir Shakirov <[email protected]> wrote:
> I run rake routes > comoleted_user_todo > > I did it > But situation the same > undefined local variable or method `comoleted_user_todo_path' > > On Apr 13, 2:54 pm, Frederick Cheung <[email protected]> > wrote: >> On Apr 13, 7:21 am, Vladimir Shakirov <[email protected]> >> wrote: >> >> >> >> >> >> >> >> >>> Hi! >> >>> I try to do nested route with collection, but I always have mistake >>> route: >>> resources :user do >>> resources :todo do >> >>> member do >>> post :complete >>> end >> >>> collection do >>> get :completed >>> end >> >>> resources :post >>> end >>> end >> >>> View: >>> <%= link_to_if (params[:action] == 'home'), 'Done', >>> comoleted_user_todo_path %> >> >> you've got a typo there >> Like Fred said, typo. There is no comoleted_user_todo_path but there is a completed_user_todo_path. B. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

