The Rails community has been abuzz with object-oriented programming, SOLID principles, laws, design patterns, and other principles, practices, and...
This sounds promising: The best part from the Rails side, is that you don’t have to change anything at...
On case-insensitive file systems like Mac's HFS+ (per default – you may change this, but it won't work...
If you're suffering from a huge de.yml or similiar file, cry no more. Rails lets you freely organize your...
If you upgrade to the mysql2 gem, you will run into the problem that the server's database.yml (which is...
Last week saw a security issue with rails 2.3 that required a fix. While an official patch was provided, the...
In large forms (30+ controls) new Capybara version become [extremely slow] when filling out fields. It takes several seconds per...
This script loads a dump into your development database. You can provide the full path to you database dump like...
When using the asset pipeline your assets (images, javascripts, stylesheets, fonts) live in folders inside app: app/assets/fonts app/assets/images...
deploy-to-production now calls Capistrano with bundle exec since we started to bundle Capistrano in all projects.
The following code activates autoloading using ActiveSupport 3.x: require 'active_support' require 'active_support/dependencies' relative_load_paths = %w[app/controllers...
Probably was in the repository once and got deleted in a commit that you pulled.
Localizing a non-trivial application can be a huge undertaking. This card will give you an overview over the many...
If your project uses another version than your default Ruby, RubyMine will give you incorrect inspections, for example.\
Capistrano recently had some API changes that can results in deploys not working when running with old deploy.rb files.
%p #{link_to "label", "url"}! Haml is a great engine for writing shorter, readable HTML. However, there is...
When requests arrive at the application servers simultaneously, weird things can happen. Sometimes, this can also happen if a user...
Using beginning_of_day or end_of_day on Date or DateTime objects in Rails 2.x applications will never...
Removing duplication from the code is a seemingly easy task. In many cases it is pretty straight-forward – you look...
If you get an error like this ... can’t find executable rails for rails-3.2.3 (Gem::Exception) ... one of several...
OCRA (One-Click Ruby Application) builds Windows executables from Ruby source code. The executable is a self-extracting, self-running...
Sometimes you need a special version of chrome because it has some features you need for testing, like in this...
It's not logical, so don't be too hard on yourself. You need to give it a height and...
You can use this code: function scrollToLine($textarea, lineNumber) { var lineHeight = parseInt($textarea.css('line-height')); $textarea.scrollTop(lineNumber * lineHeight); }