blog.salsify.com

An all-in-approach to fix the problem of pending AJAX requests dying in the browser when the server ends...

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

makandra dev
makandracards.com

Introduces :include_old_value option to :assignable_xxx method.

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

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.

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

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

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

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

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

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

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

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

If you get this error when you try to resize an OpenStack instance: # nova resize example 23 --poll