I get an undefined method month:
xml.haml:
-
@results.each do |result|
%set{:month => “#{result.month}”, :value => result.month}
Any suggestions?
I get an undefined method month:
xml.haml:
Any suggestions?
John M. 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
My output shows empty values.
John M. wrote:
John M. 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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs