Thank you.

On Nov 24, 1:06 pm, Clint <[email protected]> wrote:
> I am not familiar with act_as_followers, but
>
> followeres = user.all_following.map(&:id)
>
> is the cleanest I can come up with.
>
> On Nov 24, 8:01 am, Hesham <[email protected]> wrote:
>
>
>
>
>
>
>
> > I'm using the act_as_followers gem and one of the methods returns an
> > array of all the users that are following a specific user, example:
>
> > followers = user.all_following
>
> > What would be the clean way of extracting just the followers.id and
> > placing the results in an array?

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