Interestings
- CanCan, condition hashes, and index actions
If you have something like:
`can :manage, Group, memberships: { user_id: user.id }`
and:
`class Group < AR::Base`
has_many memberships
end
you will get duplicate Groups in index action’s @groups ivar when you load_and_authorize (sic) :group as CanCan will do an SQL join of the groups and memberships table.
The solution for us was to use a block and populate the @groups ivar ourselves in the action.
Events
- Tuesday: NYC.rb Presentation Night
http://www.meetup.com/NYC-rb/
Founded in 2004, NYC.rb is the place for experienced Ruby and Rails programmers in New York City.
MEETUPS
We meet on the second and fourth Tuesdays of the month. Second Tuesdays are for one or more talks, and fourth Tuesdays are just hackfests, where people bring their laptops and hang out.