TAG_rel_2-
1 $ sudo rake db:create RAILS_ENV='production ' 2 (in /usr/local /foo) 3 rake aborted! 4 undefined method `whiny_prot ected_attr ibutes=' for ActiveReco rd::Base:C lass 5 6 (See full trace by running task with --trace)
同じことを言っている人がrubyonrail
http://doc
delete the whiny_prot
ected_attr ibutes setting from your environeme nt. It was in the preview release but is not in the release candidate, so if you generated an app with the preview and are now upgrading it, you’ll need to remove that line.
というわけでconfig/env
1 # Disable raising errors when mass-assigning to a protected attribute 2 # config.act ive_record .whiny_pro tected_att ributes = false
すんなり解決。
posted by
satoko
on Mon 3 Dec 2007
at 11:23