In Rails 3 a couple of constants/methods were set deprecated. However, there are still plugins which use them. This ends normally in the annoying log message: DEPRECATION WARNING: RAILS_ROOT is deprecated. Please use ::Rails.root.to_s. (called from <top (required)> at /Users/heli/hemju/programming/workspace/rubymine/linguist/config/application.rb:12) So what to do when you want to get rid of them? Find them, (optional) [...]
I am not a big fan of documentation. In my experience most documentation just exists for its own sake and normally nobody cares about it. In my mind, the code itself should be so expressive that nearly no documentation is needed (libraries and frameworks are the exception to this rule). Luckily, Ruby allows the most [...]
Rails 3 doesn’t autoload files under the lib directory anymore (aka lazy loading). There was quite a discussion about this controversial decision, while lazy loading can be very good and useful, it is also convenient to not have to include every file/folder manually. Fortunately, there is an easy way to enable autoloading again. While most solutions [...]
Cucumber Bit(e)s show code examples and techniques that make your testing life easier.
Rails 3.1 will come with some great performance improvements. One of the features is called “Automatic Flushing”. See how Rails 3.1 will make your site faster