[Rails] Re: Declaring list of string constnats for app
Michael Baldock wrote in post #1062126:
> Just to be clear, I've got a database of statistics, with an attribute
> called action. This action describes what happened, ie one stat.action =
> "player has possession", whereas another stat.action = "player was
> tackled". It's these strings ("player has possession" / "player was
> tackled") that I want to store in a list.
I see. You're actually planning to use these string to present to the
user in a view. In that case I'd use the Internationalization (I18n)
strings file. That way it would be trivial to localize your application
strings to another language at some point in the future.
http://guides.rubyonrails.org/i18n.html
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home