Configure haml & factory_girl as default generator in Rails 3
Rails 3.0 didn’t provide facility to set haml & factory_girl as default generators but these can be set via 2 gems.
Its very simple to add those.
In Gemfile, add
config.generators do |g|
g.fixture_replacement :factory_girl, :dir => 'spec/factories'
(I assume you already installed haml, rspec-rails, factory_girl_rails gems)
That’s it. Now if you generate scaffold then by default you will have views as haml and fixture as factory.