Forum: Rails-ES Problema con el inicio del servidor

35cfff97b27b54f9cf57f755a22c85f0?d=identicon&s=25 Nicolas Burgos (nicolasburgos)
on 2014-08-27 16:17
Hola, estoy haciendo mi primera aplicación en ruby on rails.
Lamentablemente, tratando de usar la gema devise para lograr el login y
la autenticación de usuarios, me surgió un problema y ahora no puedo
iniciar el servidor.

Al iniciar mi servidor con 'rails s', aparece un código más o menos como
este:

nburgos@nburgos-RED:~/RubymineProjects/Futbol/Alquiler$ rails s
=> Booting WEBrick
=> Rails 4.1.4 application starting in development on
http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider
using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
Exiting
/usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.4/lib/active_support/inflector/methods.rb:238:in
`const_get': uninitialized constant User (NameError)
  from
/usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.4/lib/active_support/inflector/methods.rb:238:in
`block in constantize'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.4/lib/active_support/inflector/methods.rb:236:in
`each'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.4/lib/active_support/inflector/methods.rb:236:in
`inject'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.4/lib/active_support/inflector/methods.rb:236:in
`constantize'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/devise-3.3.0/lib/devise.rb:301:in
`get'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/devise-3.3.0/lib/devise/mapping.rb:80:in
`to'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/devise-3.3.0/lib/devise/mapping.rb:75:in
`modules'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/devise-3.3.0/lib/devise/mapping.rb:92:in
`routes'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/devise-3.3.0/lib/devise/mapping.rb:159:in
`default_used_route'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/devise-3.3.0/lib/devise/mapping.rb:69:in
`initialize'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/devise-3.3.0/lib/devise.rb:335:in
`new'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/devise-3.3.0/lib/devise.rb:335:in
`add_mapping'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/devise-3.3.0/lib/devise/rails/routes.rb:224:in
`block in devise_for'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/devise-3.3.0/lib/devise/rails/routes.rb:223:in
`each'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/devise-3.3.0/lib/devise/rails/routes.rb:223:in
`devise_for'
  from
/home/nburgos/RubymineProjects/Futbol/Alquiler/config/routes.rb:2:in
`block in <top (required)>'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/actionpack-4.1.4/lib/action_dispatch/routing/route_set.rb:337:in
`instance_exec'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/actionpack-4.1.4/lib/action_dispatch/routing/route_set.rb:337:in
`eval_block'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/actionpack-4.1.4/lib/action_dispatch/routing/route_set.rb:315:in
`draw'
  from
/home/nburgos/RubymineProjects/Futbol/Alquiler/config/routes.rb:1:in
`<top (required)>'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.4/lib/rails/application/routes_reloader.rb:40:in
`block in load_paths'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.4/lib/rails/application/routes_reloader.rb:40:in
`each'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.4/lib/rails/application/routes_reloader.rb:40:in
`load_paths'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.4/lib/rails/application/routes_reloader.rb:16:in
`reload!'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.4/lib/rails/application/routes_reloader.rb:26:in
`block in updater'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.4/lib/active_support/file_update_checker.rb:75:in
`call'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.4/lib/active_support/file_update_checker.rb:75:in
`execute'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.4/lib/rails/application/routes_reloader.rb:27:in
`updater'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.4/lib/rails/application/routes_reloader.rb:7:in
`execute_if_updated'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.4/lib/rails/application/finisher.rb:71:in
`block in <module:Finisher>'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in
`instance_exec'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in
`run'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:55:in
`block in run_initializers'
  from /usr/local/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
  from /usr/local/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in
each_strongly_connected_component'
  from /usr/local/lib/ruby/2.1.0/tsort.rb:427:in
`each_strongly_connected_component_from'
  from /usr/local/lib/ruby/2.1.0/tsort.rb:347:in `block in
each_strongly_connected_component'
  from /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `each'
  from /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `call'
  from /usr/local/lib/ruby/2.1.0/tsort.rb:345:in
`each_strongly_connected_component'
  from /usr/local/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
  from /usr/local/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:54:in
`run_initializers'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.4/lib/rails/application.rb:300:in
`initialize!'
  from
/home/nburgos/RubymineProjects/Futbol/Alquiler/config/environment.rb:5:in
`<top (required)>'
  from /home/nburgos/RubymineProjects/Futbol/Alquiler/config.ru:3:in
`block in <main>'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in
`instance_eval'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in
`initialize'
  from /home/nburgos/RubymineProjects/Futbol/Alquiler/config.ru:in `new'
  from /home/nburgos/RubymineProjects/Futbol/Alquiler/config.ru:in
`<main>'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in
`eval'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in
`new_from_string'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:40:in
`parse_file'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/rack-1.5.2/lib/rack/server.rb:277:in
`build_app_and_options_from_config'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/rack-1.5.2/lib/rack/server.rb:199:in
`app'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.4/lib/rails/commands/server.rb:50:in
`app'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/rack-1.5.2/lib/rack/server.rb:314:in
`wrapped_app'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.4/lib/rails/commands/server.rb:130:in
`log_to_stdout'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.4/lib/rails/commands/server.rb:67:in
`start'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:81:in
`block in server'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:76:in
`tap'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:76:in
`server'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:40:in
`run_command!'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.4/lib/rails/commands.rb:17:in
`<top (required)>'
  from /home/nburgos/RubymineProjects/Futbol/Alquiler/bin/rails:8:in
`require'
  from /home/nburgos/RubymineProjects/Futbol/Alquiler/bin/rails:8:in
`<top (required)>'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in
`load'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in
`call'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/client/command.rb:7:in
`call'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/client.rb:26:in
`run'
  from /usr/local/lib/ruby/gems/2.1.0/gems/spring-1.1.3/bin/spring:48:in
`<top (required)>'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/binstub.rb:11:in
`load'
  from
/usr/local/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/binstub.rb:11:in
`<top (required)>'
  from
/usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
  from
/usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
  from /home/nburgos/RubymineProjects/Futbol/Alquiler/bin/spring:16:in
`<top (required)>'
  from bin/rails:3:in `load'
  from bin/rails:3:in `<main>'

Ayuda por favor!!
This topic is locked and can not be replied to.