search for: classmet

Displaying 3 results from an estimated 3 matches for "classmet".

Did you mean: classment
2011 Dec 01
2
Association problem
Hi all I am using four models user, member, unit, society I have linked member, unit and society through member_property table user has one to one association with member while all other models have many to many association. How do I link user to member, and user to unit through member i wanted something like <%= @user.member.unit.unit_number %></p> Can someone guide how to
2008 Mar 28
6
Eager Loading + Confusion
...this happens. Its trying to do funding_entities.[name] or something with escape characters? I could sort by funding_entity_id, but that''s not very useful to the end user. I feel like I''m doing it as described here: http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html Any help would be great. Thanks, Brian Butz --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@...
2009 Mar 04
10
total per user
so I am trying to sum month over month the amount that a user has posted. So for example: User 1: Jan $3000 Feb $4000 March $1500, etc. I can get this to work if I sum totals (aggregate of all users) but just not by user. Here is my code in the controller: def index @users = User.find :all, :order => ''name ASC'' @deal_groups = Deal.find(:all).group_by {|t|