You can seriously speed up deployments with Capistrano when using a local git repository on the server you are deploying...
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...
User Stories should describe what a user wants the system to do. Purely technical tasks should usually be implemented as...
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...
To display a list of your current Git remotes and their endpoints, you can say git remote -v
If you want to convert a README.rdoc file to HTML, say this from a shell: rdoc README.rdoc
ActiveRecord gives you the :include option to load records and their associations in a fixed number of queries. This is...
ActiveRecord models know how to cast a given string to the type of a given attribute (or column).
Reading a URL via GET: curl http://example.com/ Defining any HTTP method (like POST or PUT): curl http://example.com/users/1...
It is common in Rails 3.0 applications that you want to provide default views for a group of controllers. Let...
One of the thornier problems in our workflow is knowing when assets are delivered from the designer and keeping them...
When installing RMagick you may get an error messages like this: Version 2.13.1: checking for Ruby version >= 1.8.5... yes
I prefer using Opera's "User mode" to toggle an outlining of HTML elements quickly. This helps greatly when you...
Note: ActiveRecord::Base#becomes has a lot of quirks and inconsistent behavior. You probably want to use ActiveType.cast instead.
Artifice allows you to replace the Net::HTTP subsystem of Ruby with an equivalent that routes all requests to a...
There is a nasty bug in all version of Rails 2 and some versions of Rails 3.x where two...