github.com

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

makandra dev

assignable_values now supports Rails 4.1 and Ruby 2.1.0.

...Ruby 1.8.7 is not compatible with current Rubygems versions (> 2.0). Runnig rvm rubygems latest-1.8 --force will fix this and install Rubygems version 1.8.29. To make Travis CI do this...

...add before_script: rvm rubygems latest-1.8 --force to .travis.yml. However, if you run tests for multiple Ruby versions, you need to add before_script: travis:prepare to .travis.yml. In...

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.

RSpec 3.0 deprecates the :should way of writing specs for expecting things to happen. However, if you have tests you...

Sometimes you're getting an ActiveSupport deprecation warning that you cannot or don't want to fix. In these cases...

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

github.com

jQuery plugin that makes it easy to dynamically add and remove records when using ActiveRecord's nested attributes.

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

makandra dev
mupdf.com

MuPDF is a PDF reader that renders very quickly, yet still correctly. It supports PDF 1.7 and all the fancy...

toptal.com

This is a great tutorials for beginners and intermediate AngularJS developers. It covers a lot of ground, including routing and...

When your Rails controller action responds with only a simple text, render text: 'Hello' may not be what you want...

Since version 34, Chromium/Chrome ignores the autocomplete="off" attribute on forms or input fields. Recent versions of other browser do...

The error unexpected 'x' after 'DESCENDANT_SELECTOR' (Nokogiri::CSS::SyntaxError) (where x may be basically any character) occurs when 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...

...mb == new_memory_mb) and flavor_id: raise exception.CannotResizeToSameSize() which got fixed 2012-09-12 (https://git.openstack.org/cgit/openstack/nova/commit/nova/compute/api.py?id=843af52d49554f15c13e5617b9eb672c35c7fe51).

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

guides.rubyonrails.org

config.action_controller.action_on_unpermitted_parameters enables logging or raising an exception if parameters that are not explicitly permitted are...