users has_one profile
profile has_many schools
i'm trying to build a link to this route      edit_user_profile_school 
GET    /users/:user_id/profile/schools/:id/edit(.:format)                  
schools#edit
i've been trying stuff like 
-------------------------------------------------------------------------------------
 @schools.each do |school| 
link_to 'Edit', edit_user_profile_school(current_user, school)
-------------------------------------------------------------------------------------
but nothing seems to work, can you please help me with this syntax ~ thanks

-- 
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/c0a24b1a-8e1e-4388-a6cd-625e753074d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to