Ruby on Rails Wednesday, December 15, 2010

Tom Ha wrote in post #968590:
>> :message =>lambda { I18n.t('please_select_whatever') }
>
> Thanks for the suggestion - unfortunately, it doesn't change the
> outcome...

Perhaps you should just have the validation routine generate the
translation key (in other words, leave off I18n.t), then apply the
translation in the view layer.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment