What Rails version Within before_* Within after_* Cancel later callbacks Rails 1-4 return false return false Cancel later callbacks...

If you're still working on ruby 1.8, you should know that using SimpleDelegator is often prohibitively slow. I have...

Ruby publishes security issues and MRI updates on ruby-lang.org. Unfortunately there is no straight-forward way to subscribe to these...

Ubuntu 12.04 LTS x64, Ruby 1.8.7, Rails 2.13, PDFKit 0.5.4, Phusion Passenger Apache 2 I ran into this, when I...

makandra dev
ablogaboutcode.com

After reading, you will know why and how runners.each(&:run) works. Here some tidbits: & can be quite confusing because it...

Today I ran into trouble installing therubyracer on Ruby 1.8. The installation failed with *** extconf.rb failed *** Could not create Makefile...

stackoverflow.com

You're better off using debugger-ruby_core_source: gem install debugger-ruby_core_source If you can't do...

It is good programming practice to Don't Repeat Yourself (or DRY). In Ruby on Rails we keep our code...

Geordi 0.16+ supports running selenium tests with project-specific firefox versions. Just update the gem. It will still default to...

If you need to test interaction with a remote API, check out the VCR gem as an alternative to Webmock...

So you're switching to PostgreSQL from MySQL? Here is some help... General hints on PostgreSQL \? opens the command overview...

makandra dev

The mysql2 gem in version 0.3.13 might break while compiling on older patch releases of Ruby 1.9.3 within rvm:

dusen 0.4.8 and edge_rider 0.2.3 no longer depend on Rails (they still depend on ActiveRecord). That means you can...

Do not use .rvmrc files to specify Ruby version and gemset configuration any longer, it's deprecated and not considered...

After running bundler / gem install I could not load nokogiri lately. It died with cannot load such file -- nokogiri/nokogiri.

bundler.io

bundle open BUNDLED_GEM will open the BUNDLED_GEM's source code in your default editor.

robots.thoughtbot.com

Bundler 1.4.0 (still beta) can install gems in parallel, making a run of bundle install much faster.

Ruby's private keyword might do a lot less than you think. "private" does not apply to class methods defined...

makandra dev
rubylts.com

RubyLTS is a long term supported fork of Ruby 1.8 that will continue to receive security updates for the forseeable...

smartinez87.github.io

The new exception_notification has awesome options like :ignore_crawlers => true and :ignore_if => lambda {...

...}. These options should be helpful...

Consul 0.9 comes with many new features to optimize powers that only check access to a given record. e.g. Power.current.post...

jimneath.org

The linked page lists and explains global Ruby "dollar" variables, such as: $: (load path) $* (ARGV) $? (Last exit status) $$ (PID)

Ruby 1.9 brings a shorter way to define lambdas using the -> operator: twice = -> (x) { 2 * x } twice.call(5) # => 10

makandra dev

Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...