fixed undefined method error in production.rb