The Basic Authentication header encodes username and password. Effectively, it's just Base64 plus a "Basic" prefix.

blog.plataformatec.com.br

It is common in Rails 3.0 applications that you want to provide default views for a group of controllers. Let...

pivotallabs.com

One of the thornier problems in our workflow is knowing when assets are delivered from the designer and keeping them...

makandra dev

When installing RMagick you may get an error messages like this: Version 2.13.1: checking for Ruby version >= 1.8.5... yes

By default, Opera 11 hides any passed params and the URL's protocol until you focus the address bar.

If you want to manually check if e-mail delivery works on a machine by sending an e-mail you...

apidock.com

Note: ActiveRecord::Base#becomes has a lot of quirks and inconsistent behavior. You probably want to use ActiveType.cast instead.

makandra dev
github.com

Artifice allows you to replace the Net::HTTP subsystem of Ruby with an equivalent that routes all requests to a...

makandra dev
mitmproxy.org

mitmproxy is an SSL-capable, intercepting HTTP proxy. It provides a console interface that allows traffic flows to be inspected...

There is a nasty bug in all version of Rails 2 and some versions of Rails 3.x where two...

makandra dev

If there is some weird margin at the top of your page for no apparent reason, chances are one of...

makandra dev

Within an event handler, there are multiple methods to cancel event propagation, each with different semantics. event.preventDefault() Only prevents the...

joemaller.com

Google’s Font Directory and API for web fonts could have a transformative effect on how we read the web...

makandra dev

If you're using jQuery, you need to update to 1.5.1 to get Internet Explorer 9 to work.

When you write a custom RSpec matcher a good place to store them is to create one file per matcher...

To test whether a hash includes an expected sub-hash: expect(user.attributes).to match(hash_including('name' => 'Bruce Wayne'))

At times, it might be unavoidable to have different CSS rules for Internet Explorer than for sane browsers. Using Sass...

jeffkreeftmeijer.com

Back when Steak was first released, Capybara didn’t have any of the nice RSpec helpers it does now. A...

makandra dev

The information in this card is only relevant for Rails 2.3-era apps. This note gives a quick introduction into...

makandra dev
ruzee.com

Liquid Canvas is a JavaScript library which allows you to draw inside an HTML canvas element with an easy yet...

If you just upgraded to Bundler 10.0.10 you might get the following error when bringing up Rails: /usr/lib/ruby/1.9.1/psych.rb:148:in...

Note that you cannot currently use Ruby 1.9.2 with Rails 2 applications that use RSpec, so don't upgrade if...

phantomjs.org

PhantomJS is a minimalistic headless WebKit. It has fast and native support for various web standards: DOM handling, CSS selector...

Sometimes you can make your life easier by not allowing a record attribute to be changed after the record was...