I did all of the following with Rails 3.2.12 and Bundler 1.3.0 acquired with
$> gem install --version '3.2.12' rails
$> gem install --version '1.3.0' bundler
Start by using Rails' Engine generator with a few options.
$> rails plugin new blorgh --full --dummy-path=spec/dummy \