All posts in 'English posts'

Comments are evil?

23-Feb-09

What can cause this snippet to fail: <% if !@day.user.is_rateable? # Workaround für Darstellungsfehler mit Tabellen ohne Bodies im Safari %> <!– blah –> <% end %><% if !@day.user.is_rateable? # Workaround für Darstellungsfehler mit Tabellen ohne Bodies im Safari %> <!– blah –> <% end %> This little snippet fell apart today. I don’t know […]

Read the complete article »

Localizing dates and time with Rails’ I18n using procs

12-Feb-09

Ruby on Rails I18n infrastructure did a great job to internationalization in Rails applications. Most things work right out of the box. Daily Fratze is fully internationalized and i wanted to use ordinal day numbers in the English version. Pity, there is no template for strftime that works that way. As i already hat monkey […]

Read the complete article »

Grails, Hibernate, Current Session Context

Graeme was so kind to help me with this problem. My app worked well with Grails 1.0.4 but not in 1.1-beta3 any more. My first wild guess leading to a HibernateException: contains is not valid without active transactionHibernateException: contains is not valid without active transaction exception was my use of annotated Hibernate classes together with […]

Read the complete article »

Grails startup parameter

09-Feb-09

Just some snippets from the doku that I tend to forget: Run grails on a different port: grails -Dserver.port=9090 run-appgrails -Dserver.port=9090 run-app Run grails with a different environment: grails prod run-app // production grails -Dgrails.env=mycustomenv run-app // mycustomenvgrails prod run-app // production grails -Dgrails.env=mycustomenv run-app // mycustomenv

Read the complete article »