So you got this error, even though your Gemfile bundles mysql2: !!! Missing the mysql2 gem. Add it to your Gemfile...
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...
When you develop a gem and you have a Gemfile in your project directory, you might be surprised that your...
Don't say is_a?(ActiveRecord::NamedScope::Scope) because that is no longer true in Rails 3 and also doesn...
... you probably have a time zone issue. When you get Timecop.travel(Date.parse("2011-11-11 00:00") do Time.current # Thu...
The asset pipeline from Rails 3.1 packported to 2.3. By Michael Grosser from parallel_tests fame.
You can say this in helpers like link_to and content_tag: = link_to 'Label', root_url, :data => { :foo => 'bar...
You can specify the version of bundler to execute a command (most often you need an older version of bundler...
In Rails 3.1+, instead of defining a separate up and down method you can define a single method change:
Updated the card with our current best practice (shared app code and specs via symlinks).
has_defaults is now a gem, no longer a plugin. The plugin version no longer exists. Note that plugins are...
ActiveSupport::Memoizable will be removed from Rails and has a lot of strange caveats that will ruin your day.
How to make class_attribute behave like class_inheritable_attribte which no longer exists in Rails.
Rack has a limit for how many form parameters it will parse. This limit is 65536 by default.
Lately, I came across a nasty error. I had a class Article that included FooTrait and BarTrait. In BarTrait, I...
I ported the initializer to Rails 3.
Sometimes you need to remove high Unicode characters from a string, so all characters have a code point between 0...
Ruby 1.9.2 is very slow when loading files, especially starting Rails servers or running specs takes forever.
Note that this seems to affect only recent Rails 2 versions. You will not encounter this until you are writing...
The Rails community has been abuzz with object-oriented programming, SOLID principles, laws, design patterns, and other principles, practices, and...
Recent rails security updates have shown that people make incorrect assumptions about the possible contents of the params hash.
This sounds promising: The best part from the Rails side, is that you don’t have to change anything at...
If you're suffering from a huge de.yml or similiar file, cry no more. Rails lets you freely organize your...