As attachments to this card you will find a Cucumber feature and supplementing step definition that you can use to...

stackoverflow.com

This works in all relevant browsers: document.activeElement You can use this in your Selenium steps, for example, to assert that...

If - for whatever reason - you have to render stylesheets dynamically, the following snippet might be of help. It emulates what...

If your application has forms to edit string fields, you probably want to strip the entered values (remove whitespace from...

A print stylesheet is easy to create. Choose a font suited for paper, hide some elements, done. Unfortunately print stylesheets...

css-tricks.com

Nice list of icon sets that come in the form of fonts. I recommend Font Awesome.

makandra dev
twitter.github.com

Explanation of the "bootstrap 2" base CSS. Contains information about: Typography Code Tables Forms Buttons Icons

makandra dev

Consul 0.4.0 comes with some new features. Dependencies Consul no longer requires assignable_values, it's optional for when you...

stackoverflow.com

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

In large forms (30+ controls) new Capybara version become [extremely slow] when filling out fields. It takes several seconds per...

Localizing a non-trivial application can be a huge undertaking. This card will give you an overview over the many...

When requests arrive at the application servers simultaneously, weird things can happen. Sometimes, this can also happen if a user...

makandra dev

The closest is probably Nimbus Sans L, which is released under the GPL, AFPL, LPPL licenses. However, I couldn't...

validates_acceptance_of :terms only works if terms is set to a value. The validation is skipped silently when terms...

icelab.com.au

We love Markdown. We use it wherever we can for text formatting. In a web app, the obvious place for...

When your model is using a callback like before_save or before_validation to calculate an aggregated value from its...

Don't you just hate to write Cucumber path helpers to be able to say this?

The step definition below lets you say: Then I should see a field "Password" But I should not see a...

makandra dev

When you're getting this error, one possibility is that you've created a select field for an association instead...

One of the most common production errors are ActionController::MethodNotAllowed errors. They usually happen when someone reloads a form by...

Submit buttons in Rails come with a useful option :disable_with which will disable the button when clicked and change...

In order to prevent the browser from asking whether to remember the password, give a form an autocomplete attribute with...

Forms with many inputs (600+ in my case) become extremely unresponsive on an iPad, up to the point where it...

ckeditor.com

Using the jQuery adapter breaks the built-in save function of CKEditor. Phenomenon: The page is submitted correctly, but the...