Rails flashes (FlashHash) track a list of used keys, which is not respected when comparing flash hashes.
Smashing Magazine lists some handy tricks for print style sheets, all with CSS: Expand External Links For Print
The linked site lists a wealth of CSS hacks that let you apply styles to just that one browser. You...
Do not pass times to date attributes. Always convert times to dates when your application uses time zones. Background
Rails understands a :limit options when you create columns in a migration. Its meaning depends on the column type, and...
Guide how to make fixes in other people's GitHub repositories. It's basically "Open Source Development 101".
Google Chrome saves your profile data in ~/.config/google-chrome. To transfer the profile to for example a system you have setup...
Sometimes it seems a favicon does not work because your browser displays an old version or (in case of local...
TL;DR: You should generally use #size to count associated records. size Counts already loaded elements If the association is...
Here is a hacky way to load dumps directly from the source server, without fully copying them over and extracting...
When MySQL refuses to use your index, there's a number of things that you may be doing wrong. One...
Good collection of crash-course articles about founding a start up, getting funded, validating ideas, etc.
tl;dr: Do not use merge! for session hashes. Use update instead. Outline Let's assume you're modifying the...
JavaScript has no built-in functions to compare two objects or arrays for equality of their contained values.
In Ruby 1.9, instance_eval calls the block the with receiver as the first argument: In Ruby 1.8, receiver.instance_eval...
MongoMapper is a MongoDB adapter for Ruby. We've forked it so it works for Rails 2.3.x applications running...
Ruby 1.9 changed the default behavior of Module.const_defined? from what it was in Ruby 1.8 -- this can be especially...
See attached link for a way to extract the conditions of a named scope in Rails 2.3.
This error can happen in Ruby 1.9. To fix it, add the following line to the top of your .js.erb...
JavaScripts and CSS should be minified for production use. In Rails 3.1+ the asset pipeline will take care of this...
So you're using multiple remotes that offer the same branch? $ git branch -a | grep my-branch remotes/something/my-branch remotes/origin/my-branch
You either have an old version of Mocha and an edge version of Rails 3.2, or you have a new...
This page lists many query methods and options in ActiveRecord which do not sanitize raw SQL arguments and are not...
Counters are an awesome CSS feature you didn't know about. It is supported in all browsers and IE8+.