On Oct 10, 3:56 am, Alan Sikora <[EMAIL PROTECTED]> wrote:
> <p>
> <b>Role:</b>
> <%=h Role.find(@user.role_id).name %> ==========> This
> line, is it right? Is there a better way to do it?
> </p>
typically you would have an association between users and roles so
that you could do user.role
Fred
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---