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

When your cucumber features grow massively over time, the test execution can take a lot of time.

Soon after having written our shell-for script, we wanted to easily get dumps of our productions machines, too. This...

makandra dev
github.com

After having written useful scripts into makandra notes for a long time, we’ve now tied them into a powerful...

weblog.rubyonrails.org

Asset pipeline, HTTP streaming, jQuery as default framework, auto-reversable migrations, identity map for ActiveRecord. Ruby 1.8.x support will...

You know that you can collect an array as groups using in_groups or in_groups_of. Maybe you want...

If you want to play music or sounds from a browser, your choice is to use either Flash or the...

Validations that need to access an associated object may lead to some trouble. Let's exemplify that using this example...

Occasionally you need to do something directly on the server -- like having all records recalculate something that cannot be done...

thrivingkings.com

An alert alternative for jQuery that looks good. Apprise is a very simple, fast, attractive, and unobtrusive way to communicate...

Ruby comes with a class BigDecimal which you can use for arbitrary precision arithmetic. You should use BigDecimal instead of...