In whenever you can schedule Ruby code directly like so: every 1.day, :at => '4:30 am' do runner "MyModel.task_to...
So you're getting an error message like the following, although your Gemfile lists shoulda-matchers and it has always...
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...
"Keyword arguments" allow naming method arguments (optionally setting a default value). By using the double-splat operator, you can collect...
Now supports Rails 4.1 and Ruby 2.1.
Using this gem, whenever a Capybara test in Cucumber, Rspec or Minitest fails, the HTML for the failed page and...
For me guard recently took a very long to start (as in "minutes"), because I had lots of images in...
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...
When you tell rbenv to install a Ruby it does not know about, you will get an error message.
EdgeRider 0.3.0 adds support for Rails 4.1 and Ruby 2.1. It forward-ports ActiveRecord::Base.scoped to Rails 4.1.
RSpec 3.0 deprecates the :should way of writing specs for expecting things to happen. However, if you have tests you...
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...
So you want your Ruby script to install missing gems instead of dying? Take this method: def installing_missing_gems...
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...
There are 3 built-in file descriptors: stdin, stdout and stderr (std=standard). (You can define your own, see the...
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...
config.action_controller.action_on_unpermitted_parameters enables logging or raising an exception if parameters that are not explicitly permitted are...
quiet_assets helps with disabling asset pipeline log messages in the development log. When the gem is added, asset pipeline...
Spring is a Rails application preloader. When debugging e.g. the rails gem, you'll be wondering why your raise, puts...