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.

Sometimes you need to remove high Unicode characters from a string, so all characters have a code point between 0...

makandra dev

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

makandra dev
robots.thoughtbot.com

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.

seejohncode.com

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

If you upgrade to the mysql2 gem, you will run into the problem that the server's database.yml (which is...

makandra dev

Last week saw a security issue with rails 2.3 that required a fix. While an official patch was provided, the...

makandra dev
blogs.skype.com

Promises unified window for all chat conversations, better call quality. Upgrade seems to work fine. If you installed your old...

If you have a file that looks like a precompilation fingerprint, the Rails asset pipeline will not see it. So...

When using the asset pipeline your assets (images, javascripts, stylesheets, fonts) live in folders inside app: app/assets/fonts app/assets/images...

makandracards.com

deploy-to-production now calls Capistrano with bundle exec since we started to bundle Capistrano in all projects.

The following code activates autoloading using ActiveSupport 3.x: require 'active_support' require 'active_support/dependencies' relative_load_paths = %w[app/controllers...

makandra dev
github.com

Geoffrey Grosenbach has created Gruff for easily plotting graphs. It is written in pure Ruby and integrates with Rails applications...

makandra dev

Consider the following HTML & CSS: ^ img { background-color: red; } div { border: 1px solid black; } This will leave a margin of...

Localizing a non-trivial application can be a huge undertaking. This card will give you an overview over the many...

makandracards.com

There is now a solution.

There is a conflict between current capistrano versions and the 2.5.1 net-ssh gem. Make sure you upgrade to 2.5.2...