Just going through the rails tutorial, and I noticed that the error messages are all hard coded in the controller actions etc.
What is the pattern to pull these from a localized resource file? (I'm on chapter 9 so far)
Just going through the rails tutorial, and I noticed that the error messages are all hard coded in the controller actions etc.
What is the pattern to pull these from a localized resource file? (I'm on chapter 9 so far)
There's a whole another guide about that.
(don't know what tutorial you're using, but from my experience guides.rubyonrails.org provides the best Rails reference material on the web)