From: Bob Sanders Date: 2007-11-09T15:27:36+09:00 Subject: Re: user.roles -- How do you list the role names of the user Clifford Heath wrote: > James Britt wrote: >> Bob Sanders wrote: >>> I want to list out the role names that belong to a user. >>> <% for role in user.roles %><% role.name %><% end %> >> What happens when you do user.roles.join( ',' ) ? >> You may need to explain more about the object model. Is this part of an >> ORM library? Og? Sequel? ActiveRecord? > > It'll be a Rails question. Please take Rails questions to the Rails > list. > > The OP wants <%= user.roles.map(&:name)*',' %> > > Clifford Heath. Clifford! Thank you, man! I didn't see your solution before. You got it. Thank you, thank you, Clifford :) -- Posted via http://www.ruby-forum.com/.