harvesthq.github.com

Chosen is a JavaScript plugin that makes long, unwieldy select boxes much more user-friendly. It is currently available in...

The Capybara API is somewhat hard for parse for a list of methods you can call on a Capybara node...

tl;dr: Always have your attachment path start with :rails_root/storage/#{Rails.env}#{ENV['RAILS_TEST_NUMBER']}/. The directory where you...

Don't simply test for the presence of the magic Paperclip attribute, it will return a paperclip Attachment object and...

When your Cucumber feature needs to browse the page HTML, and you are not sure how to express your query...

Note: If you are currently working with Ruby 1.8.7 or 1.9.3, we recommend to upgrade to Ruby 2.1 first. From...

In Rails 2, you could use link_to_remote...

...:update => 'id' to automatically replace the content of $('#id').

Note that this card is very old. You might want to use ActiveType for your auto-coerced virtual attributes instead...

Note: Consider using MATE instead of Gnome 3 on newer system Awesome is a very good tiling window manager that...

Install Ruby from the Ubuntu repository: sudo apt-get install ruby ruby-dev \ ruby is the meta package. If you...

I've recently encountered a weird problem with specs making lots of SOLR queries using the acts_as_solr plugin...

Here are some popular mistakes when using nested forms: You are using fields_for instead of form.fields_for.

These steps are now part of Spreewald. Since Capybara 0.4.1 a within scope will only look at the first element...

You can say: $(element).is(':visible') and $(element).is(':hidden') jQuery considers an element to be visible if it...

sudo apt-get install sqlite3 libsqlite3-dev sudo gem install sqlite3-ruby

You probably need to activate X-Sendfile.

When you render a nested form for a Movie which has_many :actors, you want to render the right number...

If you want to have an English Ubuntu UI, but still see dates, money amounts, paper formats, etc. in German...

mysqltuner.pl

This Perl script will run diagnostics on your MySQL database and recommend changes to your MySQL configuration.

When you have a hook in your Capistrano file that dumps your remote database, you might not want it to...

(Rails has a method ActiveRecord::Relation#merge that can merge ActiveRecord scopes. However, its behavior has never been clear, and...

This snippet makes links that refer to an anchor (like "...

...") scroll softly to it.\ In this example we only do...

schema.org

If you would like to enrich your website with semantic markup like contact data, places or events you should have...

Put the attached file into config/initializers/ to be able to say created_within on any ActiveRecord or its scope chain...