ruby on rails - Installing Devise Gem: forcing your application to not access the DB or load models when precompiling assets error -
hi guys running through tutorial installing devise gem. on 1 of steps told include code:
config.assets.initialize_on_precompile = false
in our config/application.rb
file
after doing when try on generator command passing --help error message:
$ rails generate devise --help dl deprecated, please use fiddle c:/users/javi/desktop/rails_projects/reddit_on_rails/config/application.rb:4:in `<top (required)>': undefined local variable or method `config' main:object (nameerror) c:/railsinstaller/ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.0.3 /lib/rails/commands.rb:43:in `require' c:/railsinstaller/ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.0.3 /lib/rails/commands.rb:43:in `<top (required)>' bin/rails:4:in `require' bin/rails:4:in `<main>'
if remove previous peice of code config/application.rb
file can pass --help command generate devise no problem. not able decipher error message. ideas happened , if issue moving forwards?
you run generator with:
rails generate devise:install
and run rails generate devise user
add devise existing user class (assuming it's named that).
rails generate devise --help
lists options devise generator.
Comments
Post a Comment