You know that you can collect an array as groups using in_groups or in_groups_of. Maybe you want...
Install Ubuntu Server Download an image from this site Select File > New… to and follow the instructions, choose the .iso...
Run rspec-and-cucumber from any project directory to run both RSpec and Cucumber. If available, rspec_spinner or cucumber...
To set the hostname of your Mac, run the following command in Terminal: sudo scutil --set HostName my-new-hostname.local
When you want to quickly boot from a drive or image in a virtual machine you do not need to...
If you want to play music or sounds from a browser, your choice is to use either Flash or the...
Whenever is a Ruby gem that provides a clear syntax for writing and deploying cron jobs.
Validations that need to access an associated object may lead to some trouble. Let's exemplify that using this example...
We often have a separate production branch that lags a bit behind the more cutting edge main branch. Sometimes you...
Occasionally you need to do something directly on the server -- like having all records recalculate something that cannot be done...
You can seriously speed up deployments with Capistrano when using a local git repository on the server you are deploying...
An alert alternative for jQuery that looks good. Apprise is a very simple, fast, attractive, and unobtrusive way to communicate...
Ruby comes with a class BigDecimal which you can use for arbitrary precision arithmetic. You should use BigDecimal instead of...
When storing floating-point numbers such as prices or totals in an SQL database, always use a DECIMAL column. Never...
When deploying an application with "cap deploy" by default [1] you only deploy your code but do not run migrations...
You set a flash message and it shows up as it should. However, it is displayed again the next time...
Airbrake (formerly Hoptoad) already ignores certain errors like InvalidAuthenticityToken by default (see Airbrake::Configuration::IGNORE_DEFAULT).\ To ignore additional classes...
Awesome presentation for the new HTML5 features we will get to play with. This presentation should probably be viewed in...
We can now plug into every facet of the Rails jQuery UJS adapter, binding to custom events, and even customizing...
If you save a non-standard object (not a String or Fixnum, etc) like the AwesomeClass from your application in...
If you want to have a new log file every day automatically, but avoid using logrotate, the CustomLog directive is...
You most likely have a form element inside another form element. Don't do that. Ever. Firefox and Chrome will...
The Edge Rider gem will define a method collect_ids on your ActiveRecord models, scopes, integer scalars and collections, which...
This is a bug in Rails 2.3.11 which will be fixed in a future maintenance release. Until then you can...