Hey y’all this is a bit outdated, but I figured it should be posted here anyway. Me + Gracious Eloise were featured on the JRuby blog.

Courtesy of JRuby Collateral
I hesitated about using JRuby at first. I spend days beefing up on Java, which I hadn’t used in years. Even though I had been using Ruby on Rails for about a year, I felt more intimidated by JRuby than going back to Java. To be fair, the project I was working on involved integrating with complicated, legacy code. I started from a place of FUD.
It took me fighting with Spring MVC to get it to return JSON without a view to say “Fuck it” and try JRuby on Rails. It was a revelation … just like the first time I used Rails itself. Eventually, that code got moved from JRuby on Rails to JRuby Resque jobs and it was then that I realized the true power of JRuby. (more…)
In my new job, I’m trying to start things out right — behavior-driven, test-driven, “cutting-edge” tools (whatever the hell that means), etc. I’ve gone through the new Rspec book (review to come) and used Cucumber and Rspec on my Rails app. I recently re-did the front-end with Backbone.js (and I am ready to marry it) and now I’m testing the javascript with Jasmine and Sinon.js.
I was rolling happily along writing tests for my Backbone.js controllers, collections and models with Jasmine/Sinon.js. Then I got to views and hit a wall. Why? Well, I’m using Jammit to package my assets for production. This is cool and all for individual javascript files as I’m also adding them to my jasmine.yml config file. The problem is that Jammit is packaging my haml templates into a global JST object and I need to access those templates, and more importantly, that global JST object when testing my view code. (more…)
Using Cucumber and Rspec for the first time has been … a little frustrating. I followed along with the main tutorial in The Rspec Book and then skimmed the later chapters. I thought it was quite good until I had to start testing an actual rails app and felt a little at a loss. But I digress … (more…)
I haven’t been using mysql much for my rails projects in favor of postgres, but in doing some tutorials on haml and sass I needed mysql in order to follow the tutorials exactly. After adding the mysql2 gem to my Gemfile, I got this error when running rake db:create: (more…)





