undefined method 'month'

I get an undefined method month:

xml.haml:   - @results.each do |result|     %set{:month => "#{result.month}", :value => result.month}

Any suggestions?

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.

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.