Note: Instead of using the method in this card, you probably want to use ActiveType's nested attributes which is...

Sometimes you need to look at the filter chain in specs. You can do it like that on Rails 2...

logicalfriday.com

How delayed jobs can make your after_save callbacks execute before the record is saved.

github.com

In Selenium features the server and client are running in separate processes. Therefore, when mocking time with a tool like...

makandra dev
sourceforge.net

ReText is a cross-platform WYSIWYG-ish Markdown editor. Toggle editor and preview layout with Ctrl+E.\

So you got this error, even though your Gemfile bundles mysql2: !!! Missing the mysql2 gem. Add it to your Gemfile...

blog.jetbrains.com

A number of issues concerning Sass/SCSS autocompletion and syntax highlighting were submitted as a feedback for RubyMine 4.5. Web development...

dan-manges.com

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

makandra dev
github.com

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

heartbeat.skype.com

There was a bug in Skype that could cause messages to be sent to incorrect recipients (anyone, not only people...

makandra dev

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:

makandracards.com

Updated the card with our current best practice (shared app code and specs via symlinks).

makandra dev

has_defaults is now a gem, no longer a plugin. The plugin version no longer exists. Note that plugins are...

github.com

In moderately complex authorization scenarios you will often find yourself writing a map like this: class NotesController < ApplicationController power :notes...

ActiveSupport::Memoizable will be removed from Rails and has a lot of strange caveats that will ruin your day.

martinciu.com

How to make class_attribute behave like class_inheritable_attribte which no longer exists in Rails.

stackoverflow.com

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

makandracards.com

I ported the initializer to Rails 3.