Could not find generator 'draper: install' rails 5

Using rails 5 I added a gem

gem 'draper', '3.0.0.pre1'

      

then when I call the setup generator I get the error

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

      

Anything I am doing wrong here?

+3


source to share


2 answers


Not sure if you still need an answer, but try putting the Github repository right into your Gemfile. It looks like maybe the gem is not updated in RubyGems.



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

      

+2


source


Since I can't seem to find an answer to this question, and to be honest, I only need a resource decorator, which I ended up creating a decorator for each of my models.

rails generate resource Article

      



works as intended.

thank

0


source







All Articles