The handy method has_select?(field, :selected => text) does not behave as expected with Cucumber 0.10.2, Capybara 0.4.1.2 and Selenium...
Delegating methods to other objects is often helpful but the syntax of both def_delegators and def_delegator is a...
In MySQL comparing zero to a string 0 = "any string" is always true! So when you want to compare a...
Don't you just hate to write Cucumber path helpers to be able to say this?
The attached patch lets you find a record by a string or number in any column: User.find_by_anything('carla...
This is a very general introduction to MV* Javascript frameworks. This card won't tell you anything new if you...
Ever seen this error when using Graticule? Numerical argument out of domain - acos Similarly to the to_sql problem for...
turn.js is a plugin for jQuery that adds a beautiful transition similar to real pages in a book or magazine...
You can use text-overflow to truncate a text using CSS but it does not fit fancy requirements.
Possible Reason 1: parallel_tests - running more processes than features If you run old versions of parallel_tests with more...
Most of the JavaScript snippets have code that manipulates the DOM. For that reason dom manipulating javascript code should have...
If you defined your association via class Article belongs_to "category" end and you try Article.scoped(:include => :category)
The following snippet demonstrates how you could create excel files (with spreadsheet gem) and format columns so that they follow...
This describes all the steps you'll need to get Solr up and running for your project using the Sunspot...
Gem to get Rails 3's new ActiveRecord query interface (where, order) and the new scope syntax (chaining scope definitions...
Twitter's Bootstrap CSS blueprint as a jQuery UI theme. Even if you don't want to use Bootstrap as...
Use the command geordi migrate to migrate your databases and to prepare them before running tests. The abbrevation geordi m...
When selecting records in a date range, take care not to do it like this: start_date = Date.parse('2007-05...
jQuery UI's date picker and date time picker doesn't work on touch interfaces. Solution 1: Use Mobiscroll
Although it's tempting flirt with detecting mobile/touch devices with CSS media queries or Javascript feature detection alone, this approach...
Basically, you now need to know if your project uses a "real" time zone or :local, and if config.active_record.time_zone...
The tagged_with scope comes with many awesome options to modify your search: User.tagged_with("awesome", "cool") # Users that are...
In your Cucumber features you can't really click hidden elements when using Selenium (it does work for a plain...
If you're using Paperclip to store and convert images attached to your models, processing a lot of images will...