Monday

14th of March, 2011

Permalink / Short Url

Was getting the “`validate_db_name’: db_name must be a string or symbol (TypeError)” when trying to run a working Rails app on a machine with a fresh install of Ruby 1.9.2, Rails 3, and apparently RubyGems 1.5.

Changing the YAML rendering engine in the config/environment.rb did not work, but commenting out the « lines, and replace them with the explicit values worked. It’s not as DRY, but it’s also 100% less errors ;-)

I will have to look into a further fix later.