Discovered potential rails 3 error: lib/rails/generators.rb:269 - undefined method `application' for Rails:Module

The solution was to add require 'rails' to my executable. But I still see it as an odd edge case and a bit of a "hack"...

nifty_controller