Copied from : https://www.nopio.com/blog/creating-scaffold-generator-rails/.
Add this line to your application's Gemfile:
gem 'mule', :path => '/Users/will/Sites/rails/templated/mule'
And then execute:
$ bundle install
rails g mule:controller [MODEL_NAME]
The gem is available as open source under the terms of the MIT License.