Here is my Gemfile
gem 'rails', '3.0.0'
...
gem 'haml-rails'
gem 'jquery-rails'
group :test do
gem 'shoulda'
gem 'rspec'
gem 'rspec-rails'
gem 'factory_girl'
end
gem 'rails3-generators', :group => :development
...
I run bundle install/update. And then not all new generators (from rails3-generators) are added. haml generators are also missing:
artem:~/projects/merjis (master)$ rails g
...
Please choose a generator below.
Rails:
controller
generator
helper
integration_test
mailer
migration
model
observer
performance_test
plugin
resource
scaffold
scaffold_controller
session_migration
stylesheets
ActiveRecord:
active_record:devise
Authlogic:
authlogic:session
Devise:
devise
devise:install
devise:views
Jquery:
jquery:install
Koala:
koala:install
MongoMapper:
mongo_mapper:install
Mongoid:
mongoid:devise
mongoid:install
Mustache:
mustache:install
Rspec:
rspec:install
What am I missing?
EDIT
As @shingara pointed, not all but only some generators are missing
Factory girl, shoulda and haml do not have ‘explicit’ generators you can call using
rails generator. You need to configure your application. Haml is automatic (through thehaml-railsgem, so from now on, each time a model is generated, it will generate haml views.For the factory-girl you have to edit
config\application.rband addand shoulda you just need to require in your
spec_helper.