rails generate abraham:install not working
gentle-noah opened this issue · 4 comments
gentle-noah commented
Is this potentially a rails 5 issue?
Output below:
rails generate abraham:install
Running via Spring preloader in process 47672
Expected boolean default value for '--markerb'; got :erb (string)
Expected string default value for '--controller'; got false (boolean)
Expected string default value for '--helper'; got true (boolean)
Expected string default value for '--assets'; got true (boolean)
Could not find generator 'abraham:install'. Maybe you meant 'rspec:install', 'koudoku:install' or 'devise:install'
Run `rails generate --help` for more options.
jabbett commented
I apologize for the very basic question - but did you add Gem 'abraham'
to your Gemfile
and run bundle
to install first?
I just ran this locally with success:
$ ruby -v
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin14]
$ rails --version
Rails 5.0.1
$ rails new abraham-test
# lots of output here
$ cd abraham-test
$ vi Gemfile
# Here I added gem 'abraham'
$ bundle install
# lots of output, then...
Using abraham 1.2
Bundle complete! 16 Gemfile dependencies, 66 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
$ rails generate abraham:install
Running via Spring preloader in process 53140
create db/migrate/20170308182208_create_abraham_histories.rb
create config/initializers/abraham.rb
create config/abraham.yml
gentle-noah commented
Yessir
gentle-noah commented
Issue solved... Not an issue with the Gem, needed to run spring stop
before I could run the generator.
jabbett commented
No worries! Thanks for using abraham. Keep the questions coming!