Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misplaced files #154

Open
leouz opened this issue Jan 19, 2018 · 0 comments
Open

Misplaced files #154

leouz opened this issue Jan 19, 2018 · 0 comments

Comments

@leouz
Copy link

leouz commented Jan 19, 2018

When you run the generate command, it copies all gem logic to inside the app. All that shouldn't be copied, just referenced.

rails g ratyrate user
Running via Spring preloader in process 16777
      create  app/assets/javascripts/jquery.raty.js
      create  app/assets/images/star-on.png
      create  app/assets/images/star-off.png
      create  app/assets/images/star-half.png
      create  app/assets/images/mid-star.png
      create  app/assets/images/big-star.png
      create  app/assets/images/cancel-on.png
      create  app/assets/images/cancel-off.png
      create  app/assets/javascripts/ratyrate.js.erb
      create  app/controllers/rater_controller.rb
      create  app/models/rate.rb
      create  app/models/rating_cache.rb
      create  app/models/average_cache.rb
      create  app/models/overall_average.rb
       route  post '/rate' => 'rater#create', :as => 'rate'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant