excid3 / jumpstart

Easily jumpstart a new Rails application with a bunch of great features by default
http://jumpstartrails.com
MIT License
1.2k stars 314 forks source link

The generator breaks after `rails webpacker:install` #28

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hello, the generator breaks after rails webpacker:install. Is there another way to install it without errors, should I have a specific Ruby / Rails version?

After removing the failed new app with rm -rf myapp2, I can use the same name myapp2 because it will stuck on devise:install.

arks-MacBook-Pro% rails new myapp2 -d postgresql -m template.rb
      create
      create  README.md
      create  Rakefile
      create  config.ru
      create  .gitignore
      create  Gemfile
         run  git init from "."
Initialized empty Git repository in /Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/.git/
      create  app
      create  app/assets/config/manifest.js
      create  app/assets/javascripts/application.js
      create  app/assets/javascripts/cable.js
      create  app/assets/stylesheets/application.css
      create  app/channels/application_cable/channel.rb
      create  app/channels/application_cable/connection.rb
      create  app/controllers/application_controller.rb
      create  app/helpers/application_helper.rb
      create  app/jobs/application_job.rb
      create  app/mailers/application_mailer.rb
      create  app/models/application_record.rb
      create  app/views/layouts/application.html.erb
      create  app/views/layouts/mailer.html.erb
      create  app/views/layouts/mailer.text.erb
      create  app/assets/images/.keep
      create  app/assets/javascripts/channels
      create  app/assets/javascripts/channels/.keep
      create  app/controllers/concerns/.keep
      create  app/models/concerns/.keep
      create  bin
      create  bin/bundle
      create  bin/rails
      create  bin/rake
      create  bin/setup
      create  bin/update
      create  bin/yarn
      create  config
      create  config/routes.rb
      create  config/application.rb
      create  config/environment.rb
      create  config/secrets.yml
      create  config/cable.yml
      create  config/puma.rb
      create  config/spring.rb
      create  config/environments
      create  config/environments/development.rb
      create  config/environments/production.rb
      create  config/environments/test.rb
      create  config/initializers
      create  config/initializers/application_controller_renderer.rb
      create  config/initializers/assets.rb
      create  config/initializers/backtrace_silencers.rb
      create  config/initializers/cookies_serializer.rb
      create  config/initializers/cors.rb
      create  config/initializers/filter_parameter_logging.rb
      create  config/initializers/inflections.rb
      create  config/initializers/mime_types.rb
      create  config/initializers/new_framework_defaults_5_1.rb
      create  config/initializers/wrap_parameters.rb
      create  config/locales
      create  config/locales/en.yml
      create  config/boot.rb
      create  config/database.yml
      create  db
      create  db/seeds.rb
      create  lib
      create  lib/tasks
      create  lib/tasks/.keep
      create  lib/assets
      create  lib/assets/.keep
      create  log
      create  log/.keep
      create  public
      create  public/404.html
      create  public/422.html
      create  public/500.html
      create  public/apple-touch-icon-precomposed.png
      create  public/apple-touch-icon.png
      create  public/favicon.ico
      create  public/robots.txt
      create  test/fixtures
      create  test/fixtures/.keep
      create  test/fixtures/files
      create  test/fixtures/files/.keep
      create  test/controllers
      create  test/controllers/.keep
      create  test/mailers
      create  test/mailers/.keep
      create  test/models
      create  test/models/.keep
      create  test/helpers
      create  test/helpers/.keep
      create  test/integration
      create  test/integration/.keep
      create  test/test_helper.rb
      create  test/system
      create  test/system/.keep
      create  test/application_system_test_case.rb
      create  tmp
      create  tmp/.keep
      create  tmp/cache
      create  tmp/cache/assets
      create  vendor
      create  vendor/.keep
      create  package.json
      remove  config/initializers/cors.rb
      remove  config/initializers/new_framework_defaults_5_1.rb
       apply  /Users/ark/Documents/Projects/GoRails/jumpstart/template.rb
     gemfile    administrate (~> 0.8.1)
     gemfile    devise (~> 4.3.0)
     gemfile    devise-bootstrapped
     gemfile    devise_masquerade (~> 0.6.0)
     gemfile    font-awesome-sass (~> 4.7)
     gemfile    gravatar_image_tag
     gemfile    jquery-rails (~> 4.3.1)
     gemfile    bootstrap (~> 4.0.0.beta)
     gemfile    webpacker (~> 3.0)
     gemfile    sidekiq (~> 5.0)
     gemfile    foreman (~> 0.84.0)
     gemfile    omniauth-facebook (~> 4.0)
     gemfile    omniauth-twitter (~> 1.4)
     gemfile    omniauth-github (~> 1.3)
         run  bundle install
Fetching https://github.com/excid3/devise-bootstrapped.git
Fetching https://github.com/mdeering/gravatar_image_tag.git
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies......
Using rake 12.3.1
Using concurrent-ruby 1.0.5
Using minitest 5.11.3
Using thread_safe 0.3.6
Using builder 3.2.3
Using erubi 1.7.1
Using mini_portile2 2.3.0
Using rack 2.0.4
Using nio4r 2.3.0
Using websocket-extensions 0.1.3
Using mini_mime 1.0.0
Using arel 8.0.0
Using public_suffix 3.0.2
Using execjs 2.7.0
Using method_source 0.9.0
Using thor 0.19.4
Using kaminari-core 1.1.1
Using rb-fsevent 0.10.3
Using ffi 1.9.23
Using tilt 2.0.8
Using selectize-rails 0.12.4.1
Using bcrypt 3.1.11
Using bindex 0.5.0
Using popper_js 1.12.9
Using bundler 1.16.1
Using byebug 10.0.1
Using coffee-script-source 1.12.2
Using connection_pool 2.2.1
Using orm_adapter 0.5.0
Using devise-bootstrapped 0.2.0 from https://github.com/excid3/devise-bootstrapped.git (at bootstrap4@a963d93)
Using crass 1.0.3
Using multipart-post 2.0.0
Using gravatar_image_tag 1.2.0 from https://github.com/mdeering/gravatar_image_tag.git (at master@c02351f)
Using hashie 3.5.7
Using jwt 1.5.6
Using ruby_dep 1.5.0
Using multi_xml 0.6.0
Using oauth 0.5.4
Using pg 1.0.0
Using puma 3.11.3
Using redis 4.0.1
Using rubyzip 1.2.1
Using turbolinks-source 5.1.0
Using i18n 0.9.5
Using tzinfo 1.2.5
Using nokogiri 1.8.2
Using rack-test 0.8.3
Using sprockets 3.7.1
Using warden 1.2.7
Using rack-protection 2.0.1
Using rack-proxy 0.6.4
Using websocket-driver 0.6.5
Using mail 2.7.0
Using addressable 2.5.2
Using autoprefixer-rails 8.2.0
Using foreman 0.84.0
Using uglifier 4.1.8
Using rb-inotify 0.9.10
Using childprocess 0.9.0
Using coffee-script 2.4.1
Using faraday 0.12.2
Using omniauth 1.8.1
Using activesupport 5.1.5
Using turbolinks 5.1.0
Using loofah 2.2.1
Using xpath 3.0.0
Using sidekiq 5.1.1
Using sass-listen 4.0.0
Using listen 3.1.5
Using selenium-webdriver 3.11.0
Using rails-dom-testing 2.0.3
Using rails-html-sanitizer 1.0.3
Using globalid 0.4.1
Using activemodel 5.1.5
Using sass 3.5.5
Using multi_json 1.13.1
Using omniauth-oauth 1.1.0
Using spring 2.0.2
Using actionview 5.1.5
Using activejob 5.1.5
Using activerecord 5.1.5
Using bootstrap 4.0.0
Using font-awesome-sass 4.7.0
Using jbuilder 2.7.0
Using oauth2 1.4.0
Using omniauth-twitter 1.4.0
Using spring-watcher-listen 2.0.1
Using actionpack 5.1.5
Using kaminari-actionview 1.1.1
Using kaminari-activerecord 1.1.1
Using omniauth-oauth2 1.5.0
Using actioncable 5.1.5
Using actionmailer 5.1.5
Using railties 5.1.5
Using kaminari 1.1.1
Using sprockets-rails 3.2.1
Using momentjs-rails 2.17.1
Using jquery-rails 4.3.1
Using coffee-rails 4.2.2
Using responders 2.4.0
Using omniauth-facebook 4.0.0
Using omniauth-github 1.3.0
Using web-console 3.5.1
Using webpacker 3.3.1
Using datetime_picker_rails 0.0.7
Using sass-rails 5.0.7
Using rails 5.1.5
Using devise 4.3.0
Using capybara 2.18.0
Using administrate 0.8.1
Using devise_masquerade 0.6.1
Bundle complete! 30 Gemfile dependencies, 111 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
         run  bundle exec spring binstub --all
* bin/rake: spring inserted
* bin/rails: spring inserted
    generate  devise:install
Running via Spring preloader in process 12404
      create  config/initializers/devise.rb
      create  config/locales/devise.en.yml
===============================================================================

Some setup you must do manually if you haven't yet:

  1. Ensure you have defined default url options in your environments files. Here
     is an example of default_url_options appropriate for a development environment
     in config/environments/development.rb:

       config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }

     In production, :host should be set to the actual host of your application.

  2. Ensure you have defined root_url to *something* in your config/routes.rb.
     For example:

       root to: "home#index"

  3. Ensure you have flash messages in app/views/layouts/application.html.erb.
     For example:

       <p class="notice"><%= notice %></p>
       <p class="alert"><%= alert %></p>

  4. You can copy Devise views (for customization) to your app by running:

       rails g devise:views

===============================================================================
       route  root to: 'home#index'
    generate  devise:views:bootstrapped
Running via Spring preloader in process 12406
      create  app/views/devise
      create  app/views/devise/confirmations/new.html.erb
      create  app/views/devise/mailer/confirmation_instructions.html.erb
      create  app/views/devise/mailer/password_change.html.erb
      create  app/views/devise/mailer/reset_password_instructions.html.erb
      create  app/views/devise/mailer/unlock_instructions.html.erb
      create  app/views/devise/passwords/edit.html.erb
      create  app/views/devise/passwords/new.html.erb
      create  app/views/devise/registrations/edit.html.erb
      create  app/views/devise/registrations/new.html.erb
      create  app/views/devise/sessions/new.html.erb
      create  app/views/devise/shared/_links.html.erb
      create  app/views/devise/unlocks/new.html.erb
    generate  devise
Running via Spring preloader in process 12420
      invoke  active_record
      create    db/migrate/20180322072424_devise_create_users.rb
      create    app/models/user.rb
      invoke    test_unit
      create      test/models/user_test.rb
      create      test/fixtures/users.yml
      insert    app/models/user.rb
       route  devise_for :users
        gsub  db/migrate/20180322072424_devise_create_users.rb
        gsub  config/initializers/devise.rb
      insert  app/models/user.rb
         run  rm app/assets/stylesheets/application.css from "."
      insert  app/assets/javascripts/application.js
      insert  config/routes.rb
      insert  config/routes.rb
      create  Procfile
       rails  webpacker:install
rails aborted!
NoMethodError: undefined method `credentials' for #<Myapp2::Application:0x00007f7fbdef61b0>
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/initializers/devise.rb:9:in `block in <top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/devise-4.3.0/lib/devise.rb:304:in `setup'
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/initializers/devise.rb:3:in `<top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `load'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `block in load'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in `load_dependency'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `load'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:655:in `block in load_config_initializer'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/notifications.rb:168:in `instrument'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:654:in `load_config_initializer'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:611:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:611:in `block in <class:Engine>'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `instance_exec'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:59:in `block in run_initializers'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:48:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:48:in `tsort_each_child'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:58:in `run_initializers'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/application.rb:353:in `initialize!'
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/environment.rb:5:in `<top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `require'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `block in require'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in `load_dependency'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `require'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/application.rb:329:in `require_environment!'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/application.rb:445:in `block in run_tasks_blocks'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/commands/rake/rake_command.rb:21:in `block in perform'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/command.rb:46:in `invoke'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/commands.rb:16:in `<top (required)>'
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/bin/rails:9:in `require'
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/bin/rails:9:in `<top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `load'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `call'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/client.rb:30:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/bin/spring:49:in `<top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `load'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `<top (required)>'
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/bin/spring:15:in `require'
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/bin/spring:15:in `<top (required)>'
./bin/rails:3:in `load'
./bin/rails:3:in `<main>'
Tasks: TOP => app:template => environment
(See full trace by running task with --trace)
    generate  model Announcement published_at:datetime announcement_type name description:text
       route  resources :announcements, only: [:index]
    generate  model Notification recipient_id:integer actor_id:integer read_at:datetime action:string notifiable_id:integer notifiable_type:string
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/initializers/devise.rb:9:in `block in <top (required)>': undefined method `credentials' for #<Myapp2::Application:0x00007fdbff2032c0> (NoMethodError)
    from /usr/local/lib/ruby/gems/2.5.0/gems/devise-4.3.0/lib/devise.rb:304:in `setup'
    from /Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/initializers/devise.rb:3:in `<top (required)>'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `load'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `block in load'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in `load_dependency'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `load'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:655:in `block in load_config_initializer'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/notifications.rb:168:in `instrument'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:654:in `load_config_initializer'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:611:in `each'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:611:in `block in <class:Engine>'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `instance_exec'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `run'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:59:in `block in run_initializers'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:48:in `each'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:48:in `tsort_each_child'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:415:in `call'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:415:in `each_strongly_connected_component_from'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:347:in `each'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:347:in `call'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:58:in `run_initializers'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/application.rb:353:in `initialize!'
    from /Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/environment.rb:5:in `<top (required)>'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `require'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `block in require'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in `load_dependency'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `require'
    from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:102:in `preload'
    from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:153:in `serve'
    from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:141:in `block in run'
    from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:135:in `loop'
    from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:135:in `run'
    from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application/boot.rb:19:in `<top (required)>'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
    from -e:1:in `<main>'
       route  resources :notifications, only: [:index]
      insert  config/routes.rb
    generate  model Service user:references provider uid access_token access_token_secret refresh_token expires_at:datetime auth:text
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/initializers/devise.rb:9:in `block in <top (required)>': undefined method `credentials' for #<Myapp2::Application:0x00007fa0552925f0> (NoMethodError)
    from /usr/local/lib/ruby/gems/2.5.0/gems/devise-4.3.0/lib/devise.rb:304:in `setup'
    from /Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/initializers/devise.rb:3:in `<top (required)>'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `load'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `block in load'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in `load_dependency'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `load'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:655:in `block in load_config_initializer'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/notifications.rb:168:in `instrument'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:654:in `load_config_initializer'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:611:in `each'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:611:in `block in <class:Engine>'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `instance_exec'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `run'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:59:in `block in run_initializers'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:48:in `each'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:48:in `tsort_each_child'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:415:in `call'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:415:in `each_strongly_connected_component_from'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:347:in `each'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:347:in `call'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:58:in `run_initializers'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/application.rb:353:in `initialize!'
    from /Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/environment.rb:5:in `<top (required)>'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `require'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `block in require'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in `load_dependency'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `require'
    from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:102:in `preload'
    from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:153:in `serve'
    from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:141:in `block in run'
    from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:135:in `loop'
    from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:135:in `run'
    from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application/boot.rb:19:in `<top (required)>'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
    from -e:1:in `<main>'
      insert  config/initializers/devise.rb
       exist  app
      create  app/assets/stylesheets/announcements.scss
      create  app/assets/stylesheets/application.scss
      create  app/assets/stylesheets/sticky-footer.scss
      create  app/controllers/announcements_controller.rb
       force  app/controllers/application_controller.rb
      create  app/controllers/home_controller.rb
      create  app/controllers/notifications_controller.rb
      create  app/controllers/users/omniauth_callbacks_controller.rb
      create  app/helpers/announcements_helper.rb
       force  app/helpers/application_helper.rb
      create  app/helpers/devise_helper.rb
      create  app/models/announcement.rb
      create  app/models/notification.rb
      create  app/models/service.rb
       force  app/models/user.rb
      create  app/views/admin/users/show.html.erb
      create  app/views/announcements/index.html.erb
       force  app/views/devise/registrations/edit.html.erb
       force  app/views/devise/registrations/new.html.erb
      create  app/views/home/index.html.erb
      create  app/views/home/privacy.html.erb
      create  app/views/home/terms.html.erb
       force  app/views/layouts/application.html.erb
      create  app/views/notifications/index.html.erb
      create  app/views/shared/_footer.html.erb
      create  app/views/shared/_head.html.erb
      create  app/views/shared/_navbar.html.erb
      create  app/views/shared/_notices.html.erb
       exist  config
      create  config/initializers/gravatar.rb
       route  get '/terms', to: 'home#terms'
       route  get '/privacy', to: 'home#privacy'
       rails  db:create
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/initializers/devise.rb:9:in `block in <top (required)>': undefined method `credentials' for #<Myapp2::Application:0x00007ff6c9a7cf98> (NoMethodError)
    from /usr/local/lib/ruby/gems/2.5.0/gems/devise-4.3.0/lib/devise.rb:304:in `setup'
    from /Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/initializers/devise.rb:3:in `<top (required)>'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `load'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `block in load'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in `load_dependency'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `load'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:655:in `block in load_config_initializer'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/notifications.rb:168:in `instrument'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:654:in `load_config_initializer'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:611:in `each'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:611:in `block in <class:Engine>'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `instance_exec'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `run'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:59:in `block in run_initializers'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:48:in `each'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:48:in `tsort_each_child'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:415:in `call'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:415:in `each_strongly_connected_component_from'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:347:in `each'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:347:in `call'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:58:in `run_initializers'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/application.rb:353:in `initialize!'
    from /Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/environment.rb:5:in `<top (required)>'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `require'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `block in require'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in `load_dependency'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `require'
    from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:102:in `preload'
    from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:153:in `serve'
    from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:141:in `block in run'
    from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:135:in `loop'
    from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:135:in `run'
    from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application/boot.rb:19:in `<top (required)>'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
    from -e:1:in `<main>'
Created database 'myapp2_development'
Created database 'myapp2_test'
       rails  db:migrate
rails aborted!
NoMethodError: undefined method `credentials' for #<Myapp2::Application:0x00007faee356ca90>
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/initializers/devise.rb:9:in `block in <top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/devise-4.3.0/lib/devise.rb:304:in `setup'
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/initializers/devise.rb:3:in `<top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `load'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `block in load'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in `load_dependency'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `load'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:655:in `block in load_config_initializer'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/notifications.rb:168:in `instrument'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:654:in `load_config_initializer'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:611:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:611:in `block in <class:Engine>'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `instance_exec'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:59:in `block in run_initializers'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:48:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:48:in `tsort_each_child'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:58:in `run_initializers'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/application.rb:353:in `initialize!'
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/environment.rb:5:in `<top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `require'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `block in require'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in `load_dependency'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `require'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/application.rb:329:in `require_environment!'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/application.rb:445:in `block in run_tasks_blocks'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/commands/rake/rake_command.rb:21:in `block in perform'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/command.rb:46:in `invoke'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/commands.rb:16:in `<top (required)>'
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/bin/rails:9:in `require'
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/bin/rails:9:in `<top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `load'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `call'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/client.rb:30:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/bin/spring:49:in `<top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `load'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `<top (required)>'
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
    generate  administrate:install
        gsub  app/dashboards/announcement_dashboard.rb
Traceback (most recent call last):
    25: from /usr/local/bin/rails:23:in `<main>'
    24: from /usr/local/bin/rails:23:in `load'
    23: from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/exe/rails:9:in `<top (required)>'
    22: from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
    21: from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
    20: from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/cli.rb:16:in `<top (required)>'
    19: from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/command.rb:44:in `invoke'
    18: from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/command/base.rb:63:in `perform'
    17: from /usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
    16: from /usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
    15: from /usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
    14: from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/commands/application/application_command.rb:24:in `perform'
    13: from /usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/base.rb:466:in `start'
    12: from /usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/group.rb:232:in `dispatch'
    11: from /usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/invocation.rb:133:in `invoke_all'
    10: from /usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/invocation.rb:133:in `map'
     9: from /usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/invocation.rb:133:in `each'
     8: from /usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/invocation.rb:133:in `block in invoke_all'
     7: from /usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
     6: from /usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
     5: from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/generators/rails/app/app_generator.rb:424:in `run_after_bundle_callbacks'
     4: from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/generators/rails/app/app_generator.rb:424:in `each'
     3: from /Users/ark/Documents/Projects/GoRails/jumpstart/template.rb:166:in `block in apply'
     2: from /Users/ark/Documents/Projects/GoRails/jumpstart/template.rb:112:in `add_administrate'
     1: from /usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/actions/file_manipulation.rb:263:in `gsub_file'
/usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/actions/file_manipulation.rb:263:in `binread': No such file or directory @ rb_sysopen - /Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/app/dashboards/announcement_dashboard.rb (Errno::ENOENT)
arks-MacBook-Pro% /Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/initializers/devise.rb:9:in `block in <top (required)>': undefined method `credentials' for #<Myapp2::Application:0x00007f84ea4cd7d8> (NoMethodError)
    from /usr/local/lib/ruby/gems/2.5.0/gems/devise-4.3.0/lib/devise.rb:304:in `setup'
    from /Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/initializers/devise.rb:3:in `<top (required)>'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `load'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `block in load'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in `load_dependency'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `load'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:655:in `block in load_config_initializer'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/notifications.rb:168:in `instrument'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:654:in `load_config_initializer'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:611:in `each'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:611:in `block in <class:Engine>'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `instance_exec'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `run'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:59:in `block in run_initializers'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:48:in `each'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:48:in `tsort_each_child'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:415:in `call'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:415:in `each_strongly_connected_component_from'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:347:in `each'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:347:in `call'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:58:in `run_initializers'
    from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/application.rb:353:in `initialize!'
    from /Users/ark/Documents/Projects/ark/jumpstart/myapp2/config/environment.rb:5:in `<top (required)>'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `require'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `block in require'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in `load_dependency'
    from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `require'
    from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:102:in `preload'
    from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:153:in `serve'
    from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:141:in `block in run'
    from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:135:in `loop'
    from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:135:in `run'
    from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application/boot.rb:19:in `<top (required)>'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
    from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
    from -e:1:in `<main>'
ghost commented 6 years ago

Fixed the issue by changing the requirement Rails version at this line:

Adding 5.2 instead of 5.1 fixed the issue: requirement = Gem::Requirement.new("> 5.2") https://github.com/excid3/jumpstart/blob/master/template.rb#L46

dreamingblackcat commented 6 years ago

I encountered the same error and it worked by fixing Gem requirement to 5.2. I also needed to delete the databases created by previous failed attempts in order to re-run the template with the same name. Thanks @darkrubyist .

excid3 commented 6 years ago

Just merged in the fix for Rails 5.2, thanks guys! 🍻