So you got this error, even though your Gemfile bundles mysql2: !!! Missing the mysql2 gem. Add it to your Gemfile...
Our rspec_candy gem now gives you three matchers: be_same_number_as Tests if the given number is the...
A number of issues concerning Sass/SCSS autocompletion and syntax highlighting were submitted as a feedback for RubyMine 4.5. Web development...
For custom Rake tasks, you shouldn't need to modify them after the original definition. However, if you want to...
assignable_values now lets you define a secondary default that is only used if the primary default value is not...
When you develop a gem and you have a Gemfile in your project directory, you might be surprised that your...
Consul 0.4.0 comes with some new features. Dependencies Consul no longer requires assignable_values, it's optional for when you...
The usage shares of your site highly depends on your target audience. E.g. no Internet Explorer has ever seen hollyapp.com...
Don't say is_a?(ActiveRecord::NamedScope::Scope) because that is no longer true in Rails 3 and also doesn...
paper_trail is an excellent gem to track record versions and changes. You almost never want to reimplement something like...
When we looked at this card together a year ago, we were no longer sure if unquote is actually useful...
You've always been able to access the humanized version for the current value like this: song = Song.new(:genre => 'pop...
The will_paginate gem will show a default of 30 records per page. If you want to test pagination in...
... you probably have a time zone issue. When you get Timecop.travel(Date.parse("2011-11-11 00:00") do Time.current # Thu...
In a nutshell: Use git rebase --onto target-branch source-commit target-branch means "branch you want to be based...
Sometimes, you may want to open up a second database connection, to a read slave or another database. When doing...
The asset pipeline from Rails 3.1 packported to 2.3. By Michael Grosser from parallel_tests fame.
Write your app using HTML, CSS or JavaScript, upload it to the PhoneGap Build service and get back app-store...
When deploying, Capistrano puts a REVISION file into your application's release directory. It contains the hash of the commit...
For my Gem Session project Holly I ran the Ironman of drag'n'drop implementations: Dragging in nested lists
You can say this in helpers like link_to and content_tag: = link_to 'Label', root_url, :data => { :foo => 'bar...
This will make MySQL log all received queries so you can see for yourself what happens on the database level...
The $.cssHooks object provides a way to define functions for getting and setting particular CSS values. It can also be...