So you're getting an error message like the following, although your Gemfile lists shoulda-matchers and it has always...

If you have some file or directory that should trigger a Spring reboot, tell Spring e.g. in config/spring.rb: Spring.watch 'file.rb...

Aruba is an extension to Cucumber that helps integration-testing command line tools. When your tests involve a Rails test...

github.com

Provides a value container that guarantees atomic updates to this value in a multi-threaded Ruby program. Originally linked to...

Since Ruby 2.1, defining a method returns its name as a Symbol: def foo() end # => :foo define_method :foo do...

chriszetter.com

"Keyword arguments" allow naming method arguments (optionally setting a default value). By using the double-splat operator, you can collect...

makandra dev
github.com

Now supports Rails 4.1 and Ruby 2.1.

As you know, assignable_values does not invalidate a record even when an attribute value becomes unassignable. See this example...

assignable_values now supports Rails 4.1 and Ruby 2.1.0.

Travis CI is a free continuous integration testing service. However, it is really fragile and will break more than it...

regular-expressions.info

A little-known feature of modern Regexp engines that help when optimizing a pattern that will be matched against long...

When you tell rbenv to install a Ruby it does not know about, you will get an error message.

makandra dev
github.com

EdgeRider 0.3.0 adds support for Rails 4.1 and Ruby 2.1. It forward-ports ActiveRecord::Base.scoped to Rails 4.1.

When you have a string containing umlauts which don't behave as expected (are not matched with a regexp, can...

Warnings like those below may originate from rspec or shoulda-matchers or other gems that have not updated yet to...

ActiveRecord caches results of SQL queries. If you want to discard the cached results for one model, you can call...

SimpleForm is a great approach to simplifying your forms, and it comes with lots of well-defined input types. However...

So you want your Ruby script to install missing gems instead of dying? Take this method: def installing_missing_gems...

I use this to simulate the (non-existing) :last-letter CSS pseudoclass, e. g. to insert a tombstone at the...

If you parse this Yaml ... yes: 'Totally' no: 'Nope' ... you get this Ruby hash: { true: 'Totally', false: 'Nope' }

You are probably using Ruby 1.8.7 with a too recent versions of Rubygems. Downgrade your Rubygems to the latest version...

makandra dev
tldp.org

There are 3 built-in file descriptors: stdin, stdout and stderr (std=standard). (You can define your own, see the...

stackoverflow.com

Create, or edit your ~/.irbrc file to include: require 'irb/ext/eval_history' # was 'irb/ext/save-history' for versions prior to Ruby 3.3 IRB.conf[:SAVE...

Edge Rider gives your relations a method #origin_class that returns the class the relation is based on.