Flowdock
Ruby on Rails latest stable (v4.1.8) - 0 notes - Superclass: NoMethodError

Raised when an attribute is not defined.

class User < ActiveRecord::Base
  has_many :pets
end

user = User.first
user.pets.select(:id).first.user_id
# => ActiveModel::MissingAttributeError: missing attribute: user_id
Show files where this class is defined (1 file)
Register or log in to add new notes.