On Nov 12, 2:22 pm, byrnejb <[email protected]> wrote:

>
> However, when I try using "link_to to user_roles" I get this method
> missing error.  What am I doing wrong?
>
>  NameError in Users#show
>
> Showing app/views/users/show.html.erb where line #59 raised:
>
> undefined local variable or method `user_roles' for #<ActionView::Base:
> 0x2aaaac0c3bf0>
>
> Extracted source (around line #59):
>
> 57:
> 58: <%= link_to 'View This Account\'s Assigned Roles',
> 59:       user_roles,
> 60:       :id => 'user_roles_link'%>
> 61:

Should be instead:

 57:
 58: <%= link_to 'View This Account\'s Assigned Roles',
 59:       user_roles_path,
 60:       :id => 'user_roles_link'%>
 61:

Sigh...

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to