Sunday, February 27, 2011

String interpolation in en.yml

suppose we need to create a copyright statement which shows current year dynamically.

in the language text file (en.yml), we expect a variable current_year:

in the layout view, we provide this current_year as hash:

No comments:

Post a Comment