Subscribe to RSS

Category Archives: Error Messages

Posts about random, stupid error messages I happen to find, and alternatively how to fix them.

Custom Rails Validations

I’ve been having some trouble getting custom rails validations to work after reading Peter Marklund’s post on the topic. I finally have a configuration that works, and I’m posting it up here because

I’ve read some random posts and threads about problems with this, and Because randomly this configuration seems to stop working for me.

So here [...]

Uninitialized constant MERB_ROOT? Use Haml trunk.

$ script/generate model User Connecting to database… /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:266:in `load_missing_constant’: uninitialized constant MERB_ROOT (NameError) from /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453:in `const_missing’ [...]