- 2009-02-24 (Tue) 19:19
- article
自分の担当している案件のRailsのバージョンを2.0.2から2.2.2に上げたら以下のようなエラーが発生。
uninitialized constant FileColumn::ClassMethods::Inflector (NameError)
これの対応は/vender/plugin/file_column/lib/file_column.rbの以下の部分を
my_options = FileColumn::init_options(options,
Inflector.underscore(self.name).to_s,
attr.to_s)
以下のように書き換えればとりあえず対応できる。
my_options = FileColumn::init_options(options,
self.name.to_s.underscore,
attr.to_s)
ちゃんちゃん。
- Newer: RubyでDuckTyping
- Older: 覚えとくと便利かもしれないVimのTips
Comments:0
Trackbacks:0
- Trackback URL for this entry
- http://ukstudio.jp/2009/02/24/file_column_name_error/trackback/
- Listed below are links to weblogs that reference
- Rails2.0.2から2.2.2に上げたらFileColumnがNameErrorだした。 from UKSTUDIO



