I just did a push to Heroku and tried to do some tests by adding a model through rails_admin. When I did this, I got a common error page. I went into the logs and noticed this message:
NoMethodError (undefined name method for nil: NilClass)
Then I opened the heroku console and tried to add the model manually and received the same message when trying to save.
NoMethodError: undefined name method for nil: NilClass
Here is the model:
class Board < ActiveRecord::Base
attr_accessible :name, :description
validates :name, :presence => true
validates :description, :presence => true
validates_uniqueness_of :name, :case_sensitive => false
has_many :subjects
scope :hidden, where(:is_hidden => true)
scope :visible, where(:is_hidden => false)
end
Any ideas what might happen to this - or where to start looking?
I migrated and was able to see that he recognized the model and its attributes when working in the console.
Thank!