lingui.st Translating software made easy

Tag Archive | "Rails"

Quicktip: Finding deprecated constants/methods easily

February 21, 2011 No comments yet

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) [...]

Quicktip: Generating Entity-Relationship Diagrams for Ruby on Rails

October 6, 2010 No comments yet

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 Quicktip: Autoload lib directory including all subdirectories, avoid lazy loading

September 22, 2010 7 comments

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 Bite: Checking Flash Messages

September 20, 2010 No comments yet

Cucumber Bit(e)s show code examples and techniques that make your testing life easier.

How Rails 3.1 will speed up your application with Automatic Flushing

September 8, 2010 1 comment

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