So in my local app, everything is fine.
Both are running Ruby 1.8.7, and Rails 2.3.5, however my deployed app gets the following error.
ActionView::TemplateError (undefined method `reduce' for #<Class:0x7fbbd034d760>)
The only difference that I can think of is the OS, I'm working on OS X and deploying to Linux.
That can't really be it though. Couldn't find anything online when it comes to reduce
working any differently.
Any Ideas on how I can debug this?
Update
Out of curiosity I've updated ActiveSupport gem to 2.3.5 (activesupport-2.3.5) and that didn’t seem to work.
This is the line in the view that gets the error:
<%= quote.quote_line_items.reduce(0) {|sum, item| sum + item[:list_price].to_f } %>