Monthly Archives: August 2012

TreeDecorator

On a couple of my projects, I’ve wanted a dynamic tree representation of a group of objects. acts_as_nested_set and it variants (such as awesome_nested_set) work well for creating the back-end structure. There are plenty of JavaScript libraries that will help … Continue reading

Posted in Ruby | Comments Off on TreeDecorator

Rails database user

Another project, another database connection via root user with no password. This is so sloppy. It is so easy to create a project specific user in any database. If this was done more often, I wouldn’t be for ever changing … Continue reading

Posted in Ruby | Comments Off on Rails database user

Comments in Gemfile

I wish people would take a little time to consider the best way to arrange and comment the gem insertions in Gemfile. I am not a great fan of commenting. I believe you should code so that it is easily … Continue reading

Posted in Ruby | Comments Off on Comments in Gemfile