Archive for the ‘RubyOnRails’ Category

Just had the problem, that I wanted a has_many association in my model with a condition from a value of the same model. Turns out this is quite hard. I know there are named_scopes, but a has_many is needed if you want to use rails’ great query methods. You see, this condition is parsed at [...]

If you use the old rake, you mabe get this error: rake aborted! undefined method `reenable’ for <Rake::Task db:schema:dump => [environment]>:Rake::Task Solution: update rake! That took me quite a while on a recent debian lenny server. The problem: rake was installed as a debian package and as ruby gem. Erase the package and make a [...]


top

Switch to our mobile site