ActiveSupport's memoize has a dangerous feature you might not know about. Assume you have class DeepThought extend ActiveSupport::Memoizable...
Cucumber_rails' old-school web-steps have been deprecated for a while, urging developers to write high-level step definitions that directly use Capybara or Webrat. We think that's...
...user symbol in the hash of inclusions turned into a "user" string.\ This breaks Rails' loading of associations as it will complain about calling nil.name or nil.macro while it tries...
The tagged_with scope comes with many awesome options to modify your search: User.tagged_with("awesome", "cool") # Users that are...
The cookies object in your controllers and views is a ActionController::CookieJar and even though that class inherits from Hash...
This is about converting Haml to ERB and not the other way round which you probably want! This process can...
ActiveRecord translations live in locale.activerecord. ActiveModel translations live in locale.activemodel. To use the same translations for both, use YAML references...
While RSpec 1 and 2 decided that specs inside spec/model are model specs, and those inside spec/features are feature specs...
Calling #gsub on a string that was previously marked as #html_safe will lead to unexpected behavior. E. g. backreferences...
Be careful to name any file @imported by SASS with a leading underscore. SASS files not beginning with an underscore...
Instead of this: Image.order('images.created_at DESC') You can write this: Image.order(created_at: :desc) Not only do you not...
By default, only application.js, application.css and all non-JS/CSS files are precompiled into public/assets. If you have asset manifests...
This error occurs when you already have a database.yml which defines the database for the cucumber environment instead of test...
Ancestry is a gem/plugin that allows the records of a Ruby on Rails ActiveRecord model to be organised as a tree structure (or hierarchy). It uses a single, intuitively formatted...
“Fat models” cause maintenance issues in large apps. Only incrementally better than cluttering controllers with domain logic, they usually represent...
We forked craken today and fixed one of the issues we had with new (>0.8.7) rake versions. The craken:install...
Haml 3.1.2 displays single quotes in FormBuilder#text_ field html escaped. You may see something like that:
If you upgrade to the mysql2 gem, you will run into the problem that the server's database.yml (which is...
When Rack::Bug has been added to your project and your Apache2/Passenger only replies with an Error 500 (Internal Server...
...Sidekiq initializer: Sidekiq.remove_delay! If you need to keep Sidekiqs delay features, add Sidekiq.hook_rails! before the option above. The sidekiq methods will be prefixed with sidekiq_ then...
...won't notice it during development. But with caching active (on production or staging) Rails will write an empty all.js file without complaining...
You cannot say this because url_for only takes one parameter: url_for(@deal, :tab => 'general') # won't work
Did you use the :select option in a find, and forgot to include foo?
Create beautiful Javascript charts with one line of Ruby. Promising chart library for easily rendering charts with Google Charts.