The following interaction works fine in my local development
environment  but fails on Heroku:

$ heroku console
>> p = Premise.new(:address => "555 University Ave", :user => User.first)
=> #<Premise id: nil, user_id: 1, address: "555 University Ave">
>> p.save
NoMethodError: undefined method `name' for nil:NilClass
        /app/.bundle/gems/ruby/1.9.1/gems/arel-2.0.9/lib/arel/visitors/
to_sql.rb:57:in `block in visit_Arel_Nodes_InsertStatement'
        /app/.bundle/gems/ruby/1.9.1/gems/arel-2.0.9/lib/arel/visitors/
to_sql.rb:56:in `map'
        /app/.bundle/gems/ruby/1.9.1/gems/arel-2.0.9/lib/arel/visitors/
to_sql.rb:56:in `visit_Arel_Nodes_InsertStatement'
        /app/.bundle/gems/ruby/1.9.1/gems/arel-2.0.9/lib/arel/visitors/
visitor.rb:15:in `visit'

Unfortunately, with the truncated backtrace, I cannot tell what part
of my code triggered the error.  Is there a way to view the full
backtrace?

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to