You most likely have a form element inside another form element. Don't do that. Ever. Firefox and Chrome will...
You can use CSS attribute selectors in your step definitions like this: Then /^the page should have a meta description...
Partials always define a local variable with the same name as themselves. E.g. when you are in _recent_users.html.erb, a local...
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...
Documentation for the horrible RDoc syntax.
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...
If you are using RVM on a Mac and cannot enter 8+ bit characters on an IRB or Rails console...
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...
User.active.to_sql Rails 2 Use either the Edge Rider or fake_arel gem to get #to_sql backported...
The Basic Authentication header encodes username and password. Effectively, it's just Base64 plus a "Basic" prefix.
Since version 1.5 RubyGems requires at least Ruby 1.8.7. The last one working with Ruby 1.8.6 was RubyGems 1.4.2.
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...
There is no way to do it. This behavior is by design. You lose.
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...
By default, Opera 11 hides any passed params and the URL's protocol until you focus the address bar.
If you want to manually check if e-mail delivery works on a machine by sending an e-mail 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...