MustModify Blog: All Posts for

Ask Cucumber with Capybara for inline HTML... now with CSS Selectors!

January 18, 2011
Two very useful cucumber steps: --- Then 'display the page' do puts "\n\n\n#{page.body.to_s}\n\n\n" end Then /^display "(*)"$/ do |selector| puts "\n\n\n#{find(selector).native.to_html}\n\n\n" end --- When you're remoting in to your dev machine, you can't use "Then show me the page" because there is no desktop in which to open...


October 28, 2010
I've been exposed to bundler on a couple of projects recently. My impression is that it does a poor job of solving a rare problem, while making common tasks more difficult.

HTML5 canvas notes

October 03, 2010
Spinner (in german... Chrome translates) "post": "example": "Ajaxian: Canvas Loader": "Apple's...

[fix for] interpolation syntax in I18n messages is deprecated

September 30, 2010
Somehow, Rails3 was installed in my 1.8 rvm gemset. rails3 depends on i18n v >= 0.4. Uninstalling i18n (and rails3, since it doesn't run in 1.8 anyway) corrected this issue.

Rails says, "Missing pdf-writer" when pdf-writer is unpacked in vendor/gems

September 01, 2010
Issue: *"Missing these required gems: pdf-writer = 1.1.8"* config/environment.rb: ---ruby config.gem "pdf-writer", :lib => "pdf/writer", :version => '1.1.8' --- That looks write... what's the issue? Turns out my new server didn't have the required dependencies. I added this above the config/gem line: --- ruby require...

Anthenticating against PayFlowPro for Rails with ActiveMerchant

July 29, 2010
Rails is fortunate to have ActiveMerchant, a gem that provides a standard interface for billing. Unfortunately, there are a wide variety of gateways out there and each has their own "uniqueness." I experienced PayFlowPro's "uniqueness" today and thought I would share my now-working spike code. THE PARTNER FIELD The partner field below is...

Triangles and Chat Bubbles with pure CSS

July 22, 2010
This is pretty awesome. Now if only it worked in IE. :(

Automated Testing for Infrastrure

July 20, 2010
I have a client whose website is subject to HIPAA regulations. I just finished setting up SSL for them. I also set up redirects so that: => => It all works now. Unfortunately, I've become accustomed to the feeling of security that I get from...