26 Apr, 2009 in
Grails,
Ruby by
khelll
This is my first article in http://railsmagazine.com, it was published in issue 1, so basically I’m just republishing it here again.
“Separate changeable parts from others that remain the same” and “composition is preferred to inheritance” are 2 common design principles when you start designing in OOP world. However and while the first seems to be [...]
5 Dec, 2008 in
Grails by
khelll
A little problem that i faced with grails , was setting the locale dynamically, i followed this nice article , and here is how i could manage it :
I made a new file called messages_ar.properties that contains the arabic localization under the i18n folder.
I made a simple beforeinterceptor:
def beforeInterceptor = {
[...]