On 16 June 2011 10:58, rajeevsharma86 <[email protected]> wrote:
> not working

It is no good just saying 'not working'.  Post exactly what you have
tried and exactly what the result is.

By the way please don't top post, it makes it difficult to follow the
thread.  Insert your replies inline at appropriate points in the
previous message.  Thanks.

Colin

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

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