The step definition below lets you write: When I click on "Foo" This is useful in Selenium features where the...

stackoverflow.com

Rack has a limit for how many form parameters it will parse. This limit is 65536 by default.

In a nutshell: Capybara's find will not work properly on nodes from a list. Don't find on elements...

CSS is a lot easier to write and read than clumsy XPath expressions. So when you need to use XPath...

Note that this seems to affect only recent Rails 2 versions. You will not encounter this until you are writing...

ask.libreoffice.org

Upgade to LibreOffice 3.5.3+ or disable hardware accelleration in Tools → Options → LibreOffice → View → Graphic output.

makandra dev

To have your text input field pre-filled in with some text that disappears as soon as the user selects...

jsfiddle.net

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...

makandracards.com

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...

makandra dev
github.com

Geoffrey Grosenbach has created Gruff for easily plotting graphs. It is written in pure Ruby and integrates with Rails applications...

ruby-toolbox.com

If you need a gem for a certain purpose, be sure to check this site. The rankings are determined by...

makandra dev

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...

stackoverflow.com

%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...

37signals.com

How to call routes, make requests and try out helpers from the Rails console.

makandra dev

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: