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
Given you use Capistrano together with bundler to automatically install your gems when deploying. I recently had the problem that...
tl;dr: Do not use merge! for session hashes. Use update instead. Outline Let's assume you're modifying the...
If bundle install shows the following message for you ... Error Bundler::HTTPError during request to dependency API ... upgrade to Bundler...
This works well in the simplified case, when your link disappears after it was clicked. Let link_to_remote behave...
You probably know that you can use CSS selectors to match against elements and their attributes, such as:
You can use the content CSS attribute to set an element's content -- which is especially useful for the :before...
January has been a very bad month for Ruby on Rails developers, with two high-severity security bugs permitting remote...
Amazon Elastic Transcoder is video transcoding in the cloud. It is designed to be a highly scalable, easy to use...
Consul 0.6.1+ gives your Power class a number of static methods that behave neutrally in case Power.current is nil. This...
validates_uniqueness_of is not sufficient to ensure the uniqueness of a value. The reason for this is that in...
The attached article outlines considerations when choosing client-side vs. server-side implementations of the Google Geocoding APIs (geocoder, directions...
The Out-of-Band Work feature allows one to perform arbitrary long-running work outside the request/response cycle without blocking...
Apache HTTP server benchmarking tool (ab) is a nice tool to test performance on sites delivered by HTTP. If the...
If you use Tempfile and pass your own filename containing an extension, it will just be consumed by the Tempfile...
Use Socket.gethostname. So for a machine whose hostname is "happycat", it will look like this: >> Socket.gethostname => "happycat" That should work...
Microsoft Office pre-fetches hyperlinks using an internal DLL (which doesn't know about your cookies), follows all redirects and...
When you have a Pull Request on GitHub that includes commits from another Pull Request, you will still see them...
As attachments to this card you will find a Cucumber feature and supplementing step definition that you can use to...
Sometimes you want to see what data you get through a TCP or UDP connection. For example, you want to...
The bash offers control over the behavior of autocompletion. The most primitive example is this (just run it in your...
When searching for text in a MySQL table, you have two choices: The LIKE operator FULLTEXT indexes (which currently only...
Basic error pages To add a few basic styles to the default error pages in Rails, just edit the default...