사용자 증서를주고 싶습니다. 액티브 :: UnknownAttributeError : 알 수없는 속성 : 레일 콘솔Postgres와의 활성 레코드 관계 및 작동하지 않음
class User < ActiveRecord::Base
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
has_many :deeds
end
class Deed < ActiveRecord::Base
belongs_to :user
end
나는이 오류 사람이 뭐가 잘못 됐는지 설명해 주시겠습니까
을 USER_ID. 도와 주셔서 감사합니다.
오류가 발생하면? 마이그레이션을 실행 했습니까 ('rake db : migrate')? – HungryCoder
예 그랬 으면 ... – houstongolden
행동 표에 user_id 열이 있습니까? –