Consider this HTML: Click me! Hello Universe! Hello Universe! Hello Universe! Hello Universe! Hello Universe! Hello Universe!
In large forms (30+ controls) new Capybara version become [extremely slow] when filling out fields. It takes several seconds per...
The amount helper now retrieves the decimal separator from your I18n dictionary (number.format.separator) instead of hardcoding it to a comma...
When using the asset pipeline your assets (images, javascripts, stylesheets, fonts) live in folders inside app: app/assets/fonts app/assets/images...
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:
CodeMirror is a JavaScript component that provides a code editor in the browser. When a mode is available for the...
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.
I followed this nice guide Connecting to MSSQL with Ruby on Ubuntu - lambie.org until I ran in the following errors...
We love Markdown. We use it wherever we can for text formatting. In a web app, the obvious place for...