Can anyone explain the difference between the Ruby on Rails console output and the Firebug console output?
event_controller.rb
def list_events
@days[1][:date] = (((Date.new(2010, 8, 6)) + 1).to_s)
end
list_events.html.erb
<% @days.each_with_index do |day, i| %>
<% p day[:date] %>; //RoR console
console.log(<%= day[:date] %>); //Firebug console
<% end %>
Ruby on Rails console output:
"2010-08-07"
Firebug console output:
1995