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

Plugin generator creates duplicate routes in Gemfile #663

Closed
brian-kephart opened this issue Jul 3, 2017 · 2 comments
Closed

Plugin generator creates duplicate routes in Gemfile #663

brian-kephart opened this issue Jul 3, 2017 · 2 comments

Comments

@brian-kephart
Copy link
Collaborator

Command: rails generate camaleon_cms:gem_plugin sitemap_customizer

Appended to Gemfile:

gem 'sitemap_customizer', path: 'apps/plugins/sitemap_customizer'

gem 'sitemap_customizer', path:  'apps/plugins/sitemap_customizer'

Console output:

       exist
      create  README.md
      create  Rakefile
      create  sitemap_customizer.gemspec

      create  MIT-LICENSE
      create  .gitignore
      create  Gemfile
      create  app/models
      create  app/models/.keep
      create  app/controllers
      create  app/controllers/.keep
      create  app/mailers
      create  app/mailers/.keep
      create  app/assets/images/sitemap_customizer
      create  app/assets/images/sitemap_customizer/.keep
      create  app/helpers
      create  app/helpers/.keep
      create  app/views
      create  app/views/.keep
      create  config/routes.rb
      create  lib/sitemap_customizer.rb
      create  lib/tasks/sitemap_customizer_tasks.rake
      create  lib/sitemap_customizer/version.rb
      create  lib/sitemap_customizer/engine.rb
      create  app/assets/config/sitemap_customizer_manifest.js
      create  app/assets/stylesheets/sitemap_customizer
      create  app/assets/stylesheets/sitemap_customizer/.keep
      create  app/assets/javascripts/sitemap_customizer
      create  app/assets/javascripts/sitemap_customizer/.keep
      create  bin/rails
      create  test/test_helper.rb
      create  test/sitemap_customizer_test.rb
      append  Rakefile
      create  test/integration/navigation_test.rb
  vendor_app  test/dummy
      append  /Users/briankephart/Sites/music-house/Gemfile
       exist  apps/plugins/sitemap_customizer
      create  apps/plugins/sitemap_customizer/app/assets/images/plugins/sitemap_customizer/.keep
      create  apps/plugins/sitemap_customizer/app/assets/javascripts/plugins/sitemap_customizer/.keep
      create  apps/plugins/sitemap_customizer/app/assets/stylesheets/plugins/sitemap_customizer/.keep
      create  apps/plugins/sitemap_customizer/app/controllers/plugins/sitemap_customizer/admin_controller.rb
      create  apps/plugins/sitemap_customizer/app/controllers/plugins/sitemap_customizer/front_controller.rb
      create  apps/plugins/sitemap_customizer/app/helpers/plugins/sitemap_customizer/main_helper.rb
      create  apps/plugins/sitemap_customizer/app/models/plugins/sitemap_customizer/sitemap_customizer.rb
      create  apps/plugins/sitemap_customizer/app/views/plugins/sitemap_customizer/admin/index.html.erb
      create  apps/plugins/sitemap_customizer/app/views/plugins/sitemap_customizer/admin/settings.html.erb
      create  apps/plugins/sitemap_customizer/app/views/plugins/sitemap_customizer/front/index.html.erb
      create  apps/plugins/sitemap_customizer/app/views/plugins/sitemap_customizer/layouts/readme.txt
      create  apps/plugins/sitemap_customizer/config/camaleon_plugin.json
      create  apps/plugins/sitemap_customizer/config/initializers/custom_models.rb
      create  apps/plugins/sitemap_customizer/config/locales/.keep
      create  apps/plugins/sitemap_customizer/db/migrate/.keep
        gsub  apps/plugins/sitemap_customizer/config/routes.rb
      append  Gemfile
@owen2345
Copy link
Owner

Fixed!

@brian-kephart
Copy link
Collaborator Author

Thanks!

cestivan pushed a commit to yingxuanio/camaleon-cms that referenced this issue Dec 10, 2017
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

2 participants