You most likely have a form element inside another form element. Don't do that. Ever. Firefox and Chrome will...
Partials always define a local variable with the same name as themselves. E.g. when you are in _recent_users.html.erb, a local...
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...
Reading a URL via GET: curl http://example.com/ Defining any HTTP method (like POST or PUT): curl http://example.com/users/1...
The Basic Authentication header encodes username and password. Effectively, it's just Base64 plus a "Basic" prefix.
It is common in Rails 3.0 applications that you want to provide default views for a group of controllers. Let...
I prefer using Opera's "User mode" to toggle an outlining of HTML elements quickly. This helps greatly when you...
If there is some weird margin at the top of your page for no apparent reason, chances are one of...
Within an event handler, there are multiple methods to cancel event propagation, each with different semantics. event.preventDefault() Only prevents the...
Google’s Font Directory and API for web fonts could have a transformative effect on how we read the web...
When you write a custom RSpec matcher a good place to store them is to create one file per matcher...
Back when Steak was first released, Capybara didn’t have any of the nice RSpec helpers it does now. A...
The information in this card is only relevant for Rails 2.3-era apps. This note gives a quick introduction into...
Liquid Canvas is a JavaScript library which allows you to draw inside an HTML canvas element with an easy yet...
Specify these gem versions in your Gemfile: gem 'cucumber', '~> 1.3.0' gem 'cucumber-rails', '= 0.3.2' # max version for Rails 2
I don't like those buttons inside the header area of a message that Thunderbird 3 put there. Though the...
Merging .po-files with Git is painful. There have been attempts of making Git more clever when trying to merge...
The shell variable PS1 holds your bash prompt. You might want to change it to serve your needs best. Here...
If in your application your users pass along params that result in filenames, like invoices/generated?number=123. This could be...
JavaScript Garden is a growing collection of documentation about the most quirky parts of the JavaScript programming language. It gives...
When you need to insert many records into the same table, performance may become an issue. What you can do...
An overview of common vim commands, including: windows buffers undo/redo navigation bookmarks selection/whitespace clipboard shortcuts search/replace programming external filters
track down warnings and to see failing specs immediately or to get an overview of the core...