Shows error when run 'rails g rails_admin:install' command - ruby-on-rails

I was trying to install rails_admin gem in my rails app.I followed this document. But when I run the command rails g rails_admin:install it shows the following error.
Running via Spring preloader in process 51535
? Where do you want to mount rails_admin? Press <enter> for [admin] > /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/thor-0.19.1/lib/thor/line_editor/readline.rb:20:in `readline': Input/output error - read (Errno::EIO)
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/thor-0.19.1/lib/thor/line_editor/readline.rb:20:in `readline'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/thor-0.19.1/lib/thor/line_editor.rb:7:in `readline'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/thor-0.19.1/lib/thor/shell/basic.rb:395:in `ask_simply'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/thor-0.19.1/lib/thor/shell/basic.rb:68:in `ask'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/thor-0.19.1/lib/thor/shell.rb:59:in `ask'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/rails_admin-0.8.1/lib/generators/rails_admin/utils.rb:13:in `ask_for'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/rails_admin-0.8.1/lib/generators/rails_admin/install_generator.rb:13:in `install'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/railties-4.2.5.1/lib/rails/generators.rb:157:in `invoke'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/railties-4.2.5.1/lib/rails/commands/generate.rb:13:in `<top (required)>'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `require'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `block in require'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `require'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/railties-4.2.5.1/lib/rails/commands/commands_tasks.rb:123:in `require_command!'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/railties-4.2.5.1/lib/rails/commands/commands_tasks.rb:130:in `generate_or_destroy'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/railties-4.2.5.1/lib/rails/commands/commands_tasks.rb:50:in `generate'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/railties-4.2.5.1/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/railties-4.2.5.1/lib/rails/commands.rb:17:in `<top (required)>'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `require'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `block in require'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `require'
from /Users/home/Neethu/Projects/Rails/Personal/SampleRailsAdmin/bin/rails:9:in `<top (required)>'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:268:in `load'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:268:in `block in load'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/home/.rbenv/versions/2.2.3/gemsets/voiceover/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:268:in `load'
from /Users/home/.rbenv/versions/2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/home/.rbenv/versions/2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from -e:1:in `<main>'
I am using gemset with Ruby version 2.2.3 and Rails version 4.2.5.
Please suggest some solution.Thanks in advance

After restarting the system it got worked !!!

Related

Debug_inspector extension was not loaded rake aborted

I try install Canvas LMS on ubuntu 20.4 And I get the error
when executing this command
commands:
sysadmin#appserver:var/canvas$ sudo yarn install
sysadmin#appserver:/var/canvas$ sudo RAILS_ENV=production bundle exec rake canvas:compile_assets
Result:
debug_inspector extension was not loaded
rake aborted!
LoadError: incompatible library version - /var/canvas/vendor/bundle/ruby/2.7.0/gems/io-console-0.5.11/lib/io/console.so
/var/canvas/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.4.7/lib/active_support/dependencies.rb:324:in `require'
/var/canvas/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.4.7/lib/active_support/dependencies.rb:324:in `block in require'
/var/canvas/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.4.7/lib/active_support/dependencies.rb:291:in `load_dependency'
/var/canvas/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.4.7/lib/active_support/dependencies.rb:324:in `require'
/var/canvas/vendor/bundle/ruby/2.7.0/gems/reline-0.3.1/lib/reline.rb:1:in `<top (required)>'
/var/canvas/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.4.7/lib/active_support/dependencies.rb:324:in `require'
/var/canvas/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.4.7/lib/active_support/dependencies.rb:324:in `block in require'
/var/canvas/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.4.7/lib/active_support/dependencies.rb:291:in `load_dependency'
/var/canvas/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.4.7/lib/active_support/dependencies.rb:324:in `require'
/var/canvas/vendor/bundle/ruby/2.7.0/gems/irb-1.4.1/lib/irb.rb:13:in `<top (required)>'
/var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/runtime.rb:66:in `require'
/var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/runtime.rb:66:in `block (2 levels) in require'
/var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/runtime.rb:61:in `each'
/var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/runtime.rb:61:in `block in require'
/var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/runtime.rb:50:in `each'
/var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/runtime.rb:50:in `require'
/var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler.rb:174:in `require'
/var/canvas/config/application.rb:28:in `<top (required)>'
/var/canvas/Rakefile:6:in `require'
/var/canvas/Rakefile:6:in `<top (required)>'
/var/canvas/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
/var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/cli/exec.rb:63:in `load'
/var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/cli/exec.rb:63:in `kernel_load'
/var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/cli/exec.rb:28:in `run'
/var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/cli.rb:474:in `exec'
/var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
/var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/cli.rb:30:in `dispatch'
/var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
/var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/cli.rb:24:in `start'
/var/lib/gems/2.7.0/gems/bundler-2.2.19/exe/bundle:49:in `block in <top (required)>'
/var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/friendly_errors.rb:130:in `with_friendly_errors'
/var/lib/gems/2.7.0/gems/bundler-2.2.19/exe/bundle:37:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
(See full trace by running task with --trace)
ruby version : 2.7.5
gem: 3.1.6

How to fix 'rails aborted' error when running "rails db:create db:migrate "?

This is the error message I get:
rails aborted!
LoadError: cannot load such file -- active_record/railties/databases.rake
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:69:in `load'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:69:in `rescue in load'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:52:in `load'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:285:in `block in load'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:285:in `load'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/activerecord-5.2.3/lib/active_record/railtie.rb:49:in `block in <class:Railtie>'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/railties-5.2.3/lib/rails/railtie.rb:246:in `instance_exec'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/railties-5.2.3/lib/rails/railtie.rb:246:in `block in run_tasks_blocks'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/railties-5.2.3/lib/rails/railtie.rb:255:in `each'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/railties-5.2.3/lib/rails/railtie.rb:255:in `each_registered_block'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/railties-5.2.3/lib/rails/railtie.rb:246:in `run_tasks_blocks'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/railties-5.2.3/lib/rails/application.rb:514:in `block in run_tasks_blocks'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/railties-5.2.3/lib/rails/engine/railties.rb:15:in `each'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/railties-5.2.3/lib/rails/engine/railties.rb:15:in `each'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/railties-5.2.3/lib/rails/application.rb:514:in `run_tasks_blocks'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/railties-5.2.3/lib/rails/engine.rb:459:in `load_tasks'
/Users/Prodigy/code/PierceF/conqueredtime/Rakefile:6:in `<top (required)>'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:285:in `block in load'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:285:in `load'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/railties-5.2.3/lib/rails/commands/rake/rake_command.rb:22:in `block in perform'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/railties-5.2.3/lib/rails/commands/rake/rake_command.rb:20:in `perform'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/railties-5.2.3/lib/rails/command.rb:48:in `invoke'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/railties-5.2.3/lib/rails/commands.rb:18:in `<top (required)>'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
/Users/Prodigy/code/PierceF/conqueredtime/bin/rails:9:in `<top (required)>'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `load'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `call'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/spring-2.1.0/lib/spring/client/command.rb:7:in `call'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/spring-2.1.0/lib/spring/client.rb:30:in `run'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/spring-2.1.0/bin/spring:49:in `<top (required)>'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `load'
/Users/Prodigy/.rvm/gems/ruby-2.5.3/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `<top (required)>'
/Users/Prodigy/code/PierceF/conqueredtime/bin/spring:15:in `require'
/Users/Prodigy/code/PierceF/conqueredtime/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Caused by:
Bootsnap::LoadPathCache::FallbackScan:
(See full trace by running task with --trace)
I also tried bundle exec rails db:create db:migrate but that still had no effect.
Since I was having this error only with this rails project and not the others, I thought maybe I'll try starting a brand new rails project and copy-paste the code/files from the older project into this new one. That fixed the issue! I guess since this is a small app I was able to get away with it.

Redmine installation on MacOS Mojave 10.14.6

I've been following this installation guide for Redmine http://www.redmine.org/projects/redmine/wiki/RedmineInstall. Everything went smoothly until step 5 in which I have to run
bundle exec rake generate_secret_token
Then I got this error
rake aborted!
LoadError: dlopen(/Library/Ruby/Gems/2.3.0/gems/mysql2-0.4.10/lib/mysql2/mysql2.bundle, 0x0009): dependent dylib 'libssl.1.0.0.dylib' not found for '/Library/Ruby/Gems/2.3.0/gems/mysql2-0.4.10/lib/mysql2/mysql2.bundle' - /Library/Ruby/Gems/2.3.0/gems/mysql2-0.4.10/lib/mysql2/mysql2.bundle
/Library/Ruby/Gems/2.3.0/gems/mysql2-0.4.10/lib/mysql2.rb:31:in `require'
/Library/Ruby/Gems/2.3.0/gems/mysql2-0.4.10/lib/mysql2.rb:31:in `<top (required)>'
/Library/Ruby/Gems/2.3.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:81:in `require'
/Library/Ruby/Gems/2.3.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
/Library/Ruby/Gems/2.3.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:76:in `each'
/Library/Ruby/Gems/2.3.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:76:in `block in require'
/Library/Ruby/Gems/2.3.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:65:in `each'
/Library/Ruby/Gems/2.3.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:65:in `require'
/Library/Ruby/Gems/2.3.0/gems/bundler-1.17.3/lib/bundler.rb:114:in `require'
/Users/dongphan/Desktop/redmine-3.4.11/config/application.rb:5:in `<top (required)>'
/Users/dongphan/Desktop/redmine-3.4.11/Rakefile:5:in `require'
/Users/dongphan/Desktop/redmine-3.4.11/Rakefile:5:in `<top (required)>'
/Library/Ruby/Gems/2.3.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
/Library/Ruby/Gems/2.3.0/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in `load'
/Library/Ruby/Gems/2.3.0/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in `kernel_load'
/Library/Ruby/Gems/2.3.0/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:28:in `run'
/Library/Ruby/Gems/2.3.0/gems/bundler-1.17.3/lib/bundler/cli.rb:463:in `exec'
/Library/Ruby/Gems/2.3.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/Library/Ruby/Gems/2.3.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/Library/Ruby/Gems/2.3.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
/Library/Ruby/Gems/2.3.0/gems/bundler-1.17.3/lib/bundler/cli.rb:27:in `dispatch'
/Library/Ruby/Gems/2.3.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
/Library/Ruby/Gems/2.3.0/gems/bundler-1.17.3/lib/bundler/cli.rb:18:in `start'
/Library/Ruby/Gems/2.3.0/gems/bundler-1.17.3/exe/bundle:30:in `block in <top (required)>'
/Library/Ruby/Gems/2.3.0/gems/bundler-1.17.3/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
/Library/Ruby/Gems/2.3.0/gems/bundler-1.17.3/exe/bundle:22:in `<top (required)>'
/usr/local/bin/bundle:22:in `load'
/usr/local/bin/bundle:22:in `<main>'
(See full trace by running task with --trace)
Seems like libssl.1.0.0.dylib is not found, what should I do to resolve this?

Rails localhost not working errno:eaccess

Sorry for dumb question. I'm newbie. I try to reopen my saved page but rails server not working. Here's the conflict. Really glad for your help. Thank you.
c:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/railties-5.1.4/lib/rails/application/configuration.rb:4:in `require': Permission denied # io_fillbuf - fd:3 c:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/railties-5.1.4/lib/rails/source_annotation_extractor.rb (Errno::EACCES)
from c:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/railties-5.1.4/lib/rails/application/configuration.rb:4:in `<top (required)>'
from c:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/sprockets-rails-3.2.1/lib/sprockets/railtie.rb:18:in `require'
from c:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/sprockets-rails-3.2.1/lib/sprockets/railtie.rb:18:in `<class:Application>'
from c:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/sprockets-rails-3.2.1/lib/sprockets/railtie.rb:15:in `<module:Rails>'
from c:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/sprockets-rails-3.2.1/lib/sprockets/railtie.rb:14:in `<top (required)>'
from c:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/railties-5.1.4/lib/rails/all.rb:14:in `require'
from c:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/railties-5.1.4/lib/rails/all.rb:14:in `block in <top (required)>'
from c:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/railties-5.1.4/lib/rails/all.rb:12:in `each'
from c:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/railties-5.1.4/lib/rails/all.rb:12:in `<top (required)>'
from c:/Sites/yelpdemo/config/application.rb:3:in `require'
from c:/Sites/yelpdemo/config/application.rb:3:in `<top (required)>'
from c:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:133:in `require'
from c:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:133:in `block in perform'
from c:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:130:in `tap'
from c:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:130:in `perform'
from c:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
from c:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
from c:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
from c:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/railties-5.1.4/lib/rails/command/base.rb:63:in `perform'
from c:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/railties-5.1.4/lib/rails/command.rb:44:in `invoke'
from c:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/railties-5.1.4/lib/rails/commands.rb:16:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
Did you use The Rails Installer by any chance? I have never gotten that to one click install Rails to work on a windows machine before.
Instead I would follow the steps outlined in this tutorial.

Ruby on Rails : Error when trying generating template (AdminLTE2)

Please help me, i'm a new ruby/rails programmer, and I want to try a free dashboard admin (AdminLTE2), but i got a problem when trying to install it, i can generate it,
im already add "gem 'adminlte2-rails'" to Gemfile, and the gem was successfully deteced in rails generate option.
i have already googling the error code too, but found nothing.
i'm using all newest ruby(2.2.2) technology, gem 2.4.8, rails 4.2.1. Thanks
and sorry for my bad English.
g40#Lenovo-G40:~/Sites/TestSites$ bin/rails generate admin_lte2
insert app/assets/stylesheets/application.scss
/home/g40/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor/actions/inject_into_file.rb:98:in `binread': No such file or directory # rb_sysopen - /home/g40/Sites/TestSites/app/assets/stylesheets/application.scss (Errno::ENOENT)
from /home/g40/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor/actions/inject_into_file.rb:98:in `replace!'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor/actions/inject_into_file.rb:59:in `invoke!'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor/actions.rb:94:in `action'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor/actions/inject_into_file.rb:30:in `insert_into_file'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/adminlte2-rails-0.0.6/lib/generators/admin_lte2/admin_lte2_generator.rb:8:in `main'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/railties-4.2.1/lib/rails/generators.rb:157:in `invoke'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/railties-4.2.1/lib/rails/commands/generate.rb:13:in `<top (required)>'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `block in require'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_dependency'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:123:in `require_command!'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:130:in `generate_or_destroy'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:50:in `generate'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/railties-4.2.1/lib/rails/commands.rb:17:in `<top (required)>'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `block in require'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_dependency'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'
from /home/g40/Sites/TestSites/bin/rails:8:in `<top (required)>'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `load'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `block in load'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_dependency'
from /home/g40/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `load'
from /home/g40/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/g40/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from -e:1:in `<main>'
Your error output contains the following line:
/home/.../inject_into_file.rb:98:in `binread': No such file or directory # rb_sysopen - /home/g40/Sites/TestSites/app/assets/stylesheets/application.scss (Errno::ENOENT)
You have to create the app/assets/stylesheets/application.scss file manually.

Resources