yehudakatz.com

Yesterday, there was a blog post entitled “What the Hell is Happening to Rails” that stayed at the number one...

crazylittlehacks.blogspot.com

I found a nice script on crazylittlehacks and modified it slightly. Put the attachment to /usr/local/bin, chmod +x and run...

Copy the attached Ruby code to config/initializers, or paste it into your IRB console. You can now dump any two...

yehudakatz.com

When running an executable, ALWAYS use bundle exec. In some cases, running executables without bundle exec may work, if the...

blog.jayfields.com

Deprecated ways to execute shell code in Ruby This is just a reference for legacy code. For new code, always...

weblog.rubyonrails.org

Asset pipeline, HTTP streaming, jQuery as default framework, auto-reversable migrations, identity map for ActiveRecord. Ruby 1.8.x support will...

Today I needed to execute a ruby gem executable with sudo. But, surprisingly, bash would tell me command not found...

Although regular expression syntax is 99% interchangeable between languages, keep this in mind: By default, the dot character (".") does not...

makandra dev

You know that you can collect an array as groups using in_groups or in_groups_of. Maybe you want...

github.com

Whenever is a Ruby gem that provides a clear syntax for writing and deploying cron jobs.

makandra dev

Validations that need to access an associated object may lead to some trouble. Let's exemplify that using this example...

Ruby comes with a class BigDecimal which you can use for arbitrary precision arithmetic. You should use BigDecimal instead of...

When storing floating-point numbers such as prices or totals in an SQL database, always use a DECIMAL column. Never...

nex-3.com

Sass now comes with user-defined functions, keyword arguments, list manipulation. Haml and Sass are now two separate gems.

github.com

A capybara driver that uses WebKit via QtWebKit.

makandra dev
github.com

Our new scope-based authorization gem for Ruby on Rails has been released. This might one day replace Aegis as...

rdoc.rubyforge.org

Documentation for the horrible RDoc syntax.

github.com

Ruby gem to check whether a given bic/account-no-combination can possibly be valid for a German bank. Can also resolve German...

If you are using RVM on a Mac and cannot enter 8+ bit characters on an IRB or Rails console...

Since version 1.5 RubyGems requires at least Ruby 1.8.7. The last one working with Ruby 1.8.6 was RubyGems 1.4.2.

makandra dev

When installing RMagick you may get an error messages like this: Version 2.13.1: checking for Ruby version >= 1.8.5... yes

makandra dev
github.com

Artifice allows you to replace the Net::HTTP subsystem of Ruby with an equivalent that routes all requests to a...

redmine.org

Phillip Koebbe from Ruby on Rails suggested inserting following code between the "bootstrap" and "initialize" sections of enviroment.rb. This hack...

makandra dev

The information in this card is only relevant for Rails 2.3-era apps. This note gives a quick introduction into...