Quantcast
Channel: Pragmatic Forums | Posts in topic 'Ch3: Trouble with I18n validation'
Viewing all articles
Browse latest Browse all 105

Ch3: Trouble with I18n validation posted by Bill Lazar @ Mon, 20 Jun 2011 01:40:38 +0000

$
0
0

When I include the line:

validates :locale, inclusion: I18N.available_locales.map(&:to_s)

I get an error on app startup:

uninitialized constant Cms::I18N (NameError)

(Cms being the model name)

Any thoughts on why this is happening?
Thanks,
Bill

[Rails: 3.0.9, Ruby 1.9.2p136]


Viewing all articles
Browse latest Browse all 105

Trending Articles