Ruby-GetText 1.90 以上はRails2系のみのサポートなので、Rails 1.2.x 系でアプリを起動しようとすると「undefined method `label'」というエラーになってしまうという話。

結構はまっている人が多い。

undefined method 'label' for class `ActionView::Helpers::FormBuilder by

結論から言うとgettext1.90以上ではRails1.2.x系をサポートしなくなったため。gemで古いgettextを入れた上でconfig/environment.rbに指定したバージョンを使うよう記述を追加する必要がある。

--
gem "gettext", "1.10.0"
require "gettext/rails"
--

参考:http://underscore.jp/diary/20080227.html#p01

posted by Face ysakaki on Thu 31 Jul 2008 at 10:24
Contents
Railsでundefined method 'label'エラーが出る件解決方法
Comments
瀧内元気: MacOS版は以下にあります * [genki/ViMouse](https://githu... '23-1
KingofSmack: Here also good reads for this mobile applicatio... '14-5
Spencer: You don't have to re-compile it, this version w... '14-4
staiano: Any chance we can get a recompile for 10.9? '14-1
dsjf: https://gist.github.com/6bf1bf2c3cbb5eb6e7a7 これ... '13-1
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ