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

makandra dev

Capistrano recently had some API changes that can results in deploys not working when running with old deploy.rb files.

When requests arrive at the application servers simultaneously, weird things can happen. Sometimes, this can also happen if a user...

stackoverflow.com

Using beginning_of_day or end_of_day on Date or DateTime objects in Rails 2.x applications will never...

Today, this line made me trouble. Can you spot the mistake? match 'sitemap.xml' => 'feeds#sitemap', :constraints => { :format => 'xml' }, :as => 'sitemap...

objectmentor.com

Slides presenting ways to integrate the ideas of Aspect-Oriented Programming in Ruby. Outline Why Aspect-Oriented Programming?