search for: some_column_name

Displaying 2 results from an estimated 2 matches for "some_column_name".

2008 May 12
3
Enumeration sum
Any idees why I can do this: @sum = @selected.inject(0) { |sum, player| sum + player.value } but not this: @sum = @selected.sum { |player| player.value } @sum = @selected.sum(&:value) The last two give me following error: wrong number of arguments (1 for 2) /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/associations/association_collection.rb:164:in `calculate''
2006 Mar 29
10
newbie question
Hi, I am new to Rails, I followed the cookbook tutorial, it worked fine, but when I started another tutorial called todo : when I type : http://127.0.0.1:3000/todo/new I get this error : Routing Error Recognition failed for "/todo/new" please help me. -- View this message in context: http://www.nabble.com/newbie-question-t1359958.html#a3643454 Sent from the RubyOnRails Users forum