Hi ,

      I am new to ROR . I am trying add translations to my application.
I have added translations for the controllers.

       1.      Where to add translations for models as i am not having
any /config/locales -> models folder ->en.yml file .

       2.  In the model i am having lines like
 validates_presence_of :name, :message => "Name cannot be blank!"

If i want to add translations for the ms Name cannot be blank , Shall i
put directly as like

 validates_presence_of :name, :message => I18n.t(str_name_notblank)


Please give suggestions

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

-- 
You received this message because you are subscribed to the Google Groups 
"rails-i18n" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-i18n?hl=en.

Reply via email to