Displaying 3 results from an estimated 3 matches for "investorgroup".
Did you mean:
investor_group
Unable to figure out why a photo attribute of the paperclip plugin is not being passed in as a param
2011 May 20
4
Unable to figure out why a photo attribute of the paperclip plugin is not being passed in as a param
..."action"=>"post_message", "id"=>"10", "controller"=>"groups"}
Investor Columns (0.002125) SHOW FIELDS FROM `investors`
Investor Load (0.000173) SELECT * FROM `investors` WHERE
(`investors`.`id` = 397) LIMIT 1
InvestorGroup Columns (0.001198) SHOW FIELDS FROM
`investor_groups`
InvestorGroup Load (0.000114) SELECT * FROM `investor_groups`
WHERE (`investor_groups`.`id` = 10)
InvestorGroup Load (0.000207) SELECT investor_groups.* FROM
investor_groups INNER JOIN investor_group_members ON investor_groups....
2011 Mar 23
0
Implementing auto complete for more than one field in Rails
...urrently, 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 within the same method.
Also, from this...
2011 May 14
0
Undefined method `has_attached_file' with paperclip 2.3.8 gem for Rails 2 using Ruby 1.8.7
...e/mohnish/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require''
script/server:3
My groups_controller.rb show method looks like this, here line 27 is
`@group_post = GroupPost.new(params[:group_post])` :-
def show
@investor_group = InvestorGroup.find(params[:id])
@members = @investor_group.activated_members
# code taken from discuss method
investor_id = session[''investor_id'']
@investor = Investor.find(investor_id)
@members = @investor_group.activated_members
unless
@curren...