search for: calculate_members_count

Displaying 1 result from an estimated 1 matches for "calculate_members_count".

2011 Mar 23
0
Implementing auto complete for more than one field in Rails
...gt; The alignment of the view might be hay wire currently, but thats not my immediate focus. Thus kindly, ignore the same. I have an idea of what I need to do and I have been able to write some code for the same in my groups_controller.rb To get what I require, I tried the following:- def calculate_members_count @investor_group = InvestorGroup.find(params[:id]) @members_count = @investor_group.activated_members.size return "@members_count", :title end Now this should give me the group title/name and the members_count. I am not sure how could I fetch the image also w...