Geoffrey Grosenbach has created Gruff for easily plotting graphs. It is written in pure Ruby and integrates with Rails applications...
If you need a gem for a certain purpose, be sure to check this site. The rankings are determined by...
Consider the following HTML & CSS: ^ img { background-color: red; } div { border: 1px solid black; } This will leave a margin of...
Localizing a non-trivial application can be a huge undertaking. This card will give you an overview over the many...
%p #{link_to "label", "url"}! Haml is a great engine for writing shorter, readable HTML. However, there is...
When requests arrive at the application servers simultaneously, weird things can happen. Sometimes, this can also happen if a user...
Say you want to vertically align a div box inside a div container. This is how you do it:
Today, this line made me trouble. Can you spot the mistake? match 'sitemap.xml' => 'feeds#sitemap', :constraints => { :format => 'xml' }, :as => 'sitemap...
How to call routes, make requests and try out helpers from the Rails console.
The closest is probably Nimbus Sans L, which is released under the GPL, AFPL, LPPL licenses. However, I couldn't...
All our projects have enum-like requirements like this: An attribute value must be included in a given set of...
Controller responses often include Javascript code that contains values from Ruby variables. E.g. you want to call a Javascript function...
So you probably see the following error trace within your Passenger log file if you got here:
You can define what will be printed by checking View -> Preview Page Breaks and then moving around the blue borders...
validates_acceptance_of :terms only works if terms is set to a value. The validation is skipped silently when terms...
This is a demo of the "Tabby" Javascript jQuery plugin to use tabs in regular textareas to make them suitable...
Capybara has a global option (Capybara.ignore_hidden_elements) that determines whether Capybara sees or ignores hidden elements.
We love Markdown. We use it wherever we can for text formatting. In a web app, the obvious place for...
This only applies to RSpec below version 1.3.2. The issue has been fixed in RSpec 1.3.2, and most likely RSpec...
When your model is using a callback like before_save or before_validation to calculate an aggregated value from its...
Imagine you have 2 HTML boxes. The first one has a margin-bottom of let's say 30px and the...
REST Client is a nice, simple HTTP client library for Ruby. When you do a simple GET request like that...
Don't you just hate to write Cucumber path helpers to be able to say this?
This is a very general introduction to MV* Javascript frameworks. This card won't tell you anything new if you...