So you're switching to PostgreSQL from MySQL? Here is some help... General hints on PostgreSQL \? opens the command overview...
Using text-transform: uppercase - especially on form labels - can cause you serious headaches in Selenium tests. Sometimes the web driver...
dusen 0.4.8 and edge_rider 0.2.3 no longer depend on Rails (they still depend on ActiveRecord). That means you can...
With Rails 4, Concerns have become the “official” solution to the big-models problem. However, there’s a fair amount...
We’ve been working on one of our first Angular projects with a Rails backend. It’s been a great...
After running bundler / gem install I could not load nokogiri lately. It died with cannot load such file -- nokogiri/nokogiri.
In order to keep the controllers directory tidy, we recently started to namespace controllers. With the :controller option you can...
When you're writing migrations that do more than changing tables (like, modify many records) you may want some output...
Custom matchers are a useful RSpec feature which you can use to DRY up repetitive expectations in your specs. Unfortunately...
Shared example groups are a useful RSpec feature. Unfortunately the default directory structure generated by rspec-rails has no obvious...
In Rails 5 you can say: ApplicationController.render( :template => 'users/index', :layout => 'my_layout', :assigns => { users: @users } ) If a Request Environment is...
RubyLTS is a long term supported fork of Ruby 1.8 that will continue to receive security updates for the forseeable...
Simply give the select helper an option :disabled, passing either a single value or an array. You need to specify...
We tend to use database transactions as a magic bullet to get rid of all our concurrency problems. When things...
Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...
Next time you have to do more than trivial CSS changes on a project, you probably want to have live...
Remember why preloading associations "randomly" uses joined tables or multiple queries? If you don't like the cleverness of this...
1. Saving files to a directory that is not shared between deploys or servers If you save your uploads to...
Rails 4.0 is finally ready after a thorough process of betas and release candidates. It's an amazing new version...
This card shows how to upgrade a Rails 2 application from Rails 2.3.8 through every single patch level up to...
The Rails secret_token must be unique for each application and any instance of it. If not, someone could exploit...
ActionMailer per default uses http as protocol, which enables SSL-stripping. When a logged-in user follows an http link...
Put the attached files into your home directory and enjoy. .irbrc defines interesting_methods, which is essentially all methods without...
The Ruby on Rails security list archive can be found here: http://groups.google.com/group/rubyonrails-security You can subscribe to this mailing...