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

When using ActionMailer, you can set an array of email addresses as recipients. If this array is generated by e.g...

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

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

ActiveRecord comes with a method touch which sets the updated_at timestamp to the current time. Unfortunately it also runs...

devstructure.com

blueprint is DevStructure’s workhorse tool that looks inside popular package managers, finds changes you made to configuration files, and...

makandra dev
cch4rails.blogspot.com

List of global variables available to a Ruby script.

Specify these gem versions in your Gemfile: gem 'cucumber', '~> 1.3.0' gem 'cucumber-rails', '= 0.3.2' # max version for Rails 2

I don't like those buttons inside the header area of a message that Thunderbird 3 put there. Though the...

Sometimes you need to dynamically load an image and do something as soon as its loaded (when for example its...

Cucumber scenarios that are tagged with @javascript so they run with Selenium are very slow. You might not want to...

ctan.larsko.net

If you plan to insert an existing PDF into a new LaTeX document that you will compile to PDF, you...

Merging .po-files with Git is painful. There have been attempts of making Git more clever when trying to merge...

makandra dev
github.com

The shell variable PS1 holds your bash prompt. You might want to change it to serve your needs best. Here...

pluginaweek.org

Now allows to list transition paths from and to arbitrary states.

Add deprecation warnings and their solution or link to available solutions. Global access to Rake DSL methods is deprecated. Please...