Search code examples
ruby-on-rails-5draper

Could not find generator 'draper:install' rails 5


Using rails 5 I added the gem

gem 'draper', '3.0.0.pre1'

then when I call the install generator I get an error

Could not find generator 'draper:install'. Maybe you meant 'devise:install', 'config:install' or 'responders:install'

Anything Im doing wrong here?


Solution

  • Not sure if you still need an answer, but try putting the Github repo directly in your Gemfile. Looks like maybe the gem is not up-to-date in RubyGems.

    gem 'draper', '3.0.0.pre1', github: 'drapergem/draper'