Saturday, January 30, 2010

[Rails] Re: undefined method 'month'

John Merlino wrote:
> John Merlino wrote:
>> I get an undefined method month:
>>
>> xml.haml:
>> - @results.each do |result|
>> %set{:month => "#{result.month}", :value => result.month}
>>
>> Any suggestions?
>
> Actually I figured out why it was returning undefined. But with this
> - @results.each do |result|
> %set{:value1 => "#{result.month}"}, {:value2 => "#{result.month}"}
>
> My output shows empty values.

Ok I fixed that problem as well. However, it's not displaying the total
number of results by month though. I have more records than what are
being showed when output.
--
Posted via http://www.ruby-forum.com/.

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate