Asset pipeline, HTTP streaming, jQuery as default framework, auto-reversable migrations, identity map for ActiveRecord. Ruby 1.8.x support will...
Today I needed to execute a ruby gem executable with sudo. But, surprisingly, bash would tell me command not found...
We recently decided to put static content for HouseTrip.com to Amazon Cloudfront for a faster user experience. This happens fully...
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...
Occasionally you need to do something directly on the server -- like having all records recalculate something that cannot be done...
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...
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...
You most likely have a form element inside another form element. Don't do that. Ever. Firefox and Chrome will...
This is a bug in Rails 2.3.11 which will be fixed in a future maintenance release. Until then you can...
Our new scope-based authorization gem for Ruby on Rails has been released. This might one day replace Aegis as...
If you are using RVM on a Mac and cannot enter 8+ bit characters on an IRB or Rails console...
Reading a URL via GET: curl http://example.com/ Defining any HTTP method (like POST or PUT): curl http://example.com/users/1...
User.active.to_sql Rails 2 Use either the Edge Rider or fake_arel gem to get #to_sql backported...
It is common in Rails 3.0 applications that you want to provide default views for a group of controllers. Let...
When installing RMagick you may get an error messages like this: Version 2.13.1: checking for Ruby version >= 1.8.5... yes
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...
If you're using jQuery, you need to update to 1.5.1 to get Internet Explorer 9 to work.
Phillip Koebbe from Ruby on Rails suggested inserting following code between the "bootstrap" and "initialize" sections of enviroment.rb. This hack...