NopeCode

Slow query with ActiveRecord's method first

If you’ve grown with Rails like me you know that everyone used and perhaps still uses everywhere first method. You just type it automatically. I know that it’s so simple that it doesn’t even deserve a post but you have to stop doing that.

irb

Things...

Query Trail

Recently I switched on a project with lots of legacy code. It was on Rails 2, Rails 3 and now I’ve updated it to Rails 4.1. You can’t even imagine how much rubbish I got rid of. But the thing I’d like to share with you today is QueryTrail. This simple...

Rails autoloading

There is much to be said about Rails autoloading and particularly about ActiveSupport::Dependencies (AS::D for short). What does it do? As the title says it loads constants automatically and reloads your code catching changes on every request. Ok,...

Prev | Page 3 of 4 | Next

Яндекс.Метрика