Hey people, I'm having a problem translating messages inside a model, e.g. I used to have it like this:
validates_uniqueness_of :username, :message => "Username in use already" which worked fine but now I wanna internationalize my application and thought it'd work like everywhere else in my application and I did following: validates_uniqueness_of :username, :message => (t :username_in_use) and I get: `method_missing': undefined method `t' Is it not possible to translate text inside a model? If it is... how do I do it the right way? -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

