not working On Thu, Jun 16, 2011 at 1:20 PM, askegg <[email protected]> wrote:
> Your problem is here: > > > @user.skill_ids > > NoMethodError: undefined method `skill_ids' for > > #<ActiveRecord::Relation:0x00000005515b58> > > @user.role_ids > > NoMethodError: undefined method `skill_ids' for > > #<ActiveRecord::Relation:0x00000005515b58> > > Try @user.skills.all and @user.roles.all. > > Of you really DO want just the ids (seriously ask yourself why), then > @user.skills.all.collect(&:id) and @user.roles.all.collect(&:id) > > -- > 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. > > -- 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.

