Ruby on Rails Sunday, December 27, 2015

Hello,

Can you show us your routing file ?

W dniu pon., 28.12.2015 o 05:12 fugee ohu <fugee279@gmail.com> napisał(a):
clicking this link in the view
<%=
link_to 'Profile', new_user_profile_path(@user) %>
causes
NoMethodError in Profiles#new undefined method `profiles_path'
here's the route from rake routes
new_user_profile GET    /users/:user_id/profile/new(.:format)                               profiles#new

i'm using devise so i think current_user is the same as @user but i tried that too and it causes the same error


--
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/f9e8207f-998d-4535-b402-db9055f5dd9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Pozdrawiam,
Przemek Kosakowski
tel: +48 743 868 900

--
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/CACjdbWeJq%3D62XJeoAzSqsygfU3XRqUew76z05MbW-UZurCFyYg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment