lundi 14 août 2017

Rails console doesn't start - undefiined method cache_control

So I'm trying to run rails console but I get the following error:

/var/lib/gems/2.3.0/gems/actionpack-5.1.3/lib/action_dispatch/http/response.rb:89:in <class:Response>': undefined methodcache_control' for class ActionDispatch::Response' (NameError) from /var/lib/gems/2.3.0/gems/actionpack-5.1.3/lib/action_dispatch/http/response.rb:35:in' from /var/lib/gems/2.3.0/gems/actionpack-5.1.3/lib/action_dispatch/http/response.rb:6:in <top (required)>' from /var/lib/gems/2.3.0/gems/actionpack-5.1.3/lib/action_controller/metal/live.rb:1:inrequire' from /var/lib/gems/2.3.0/gems/actionpack-5.1.3/lib/action_controller/metal/live.rb:1:in <top (required)>' from /var/lib/gems/2.3.0/gems/actionpack-5.1.3/lib/action_controller.rb:4:inrequire' from /var/lib/gems/2.3.0/gems/actionpack-5.1.3/lib/action_controller.rb:4:in <top (required)>' from /var/lib/gems/2.3.0/gems/actionpack-5.1.3/lib/action_controller/railtie.rb:2:inrequire' from /var/lib/gems/2.3.0/gems/actionpack-5.1.3/lib/action_controller/railtie.rb:2:in <top (required)>' from /var/lib/gems/2.3.0/gems/activerecord-5.1.3/lib/active_record/railtie.rb:9:inrequire' from /var/lib/gems/2.3.0/gems/activerecord-5.1.3/lib/active_record/railtie.rb:9:in <top (required)>' from /var/lib/gems/2.3.0/gems/railties-5.1.3/lib/rails/all.rb:14:inrequire' from /var/lib/gems/2.3.0/gems/railties-5.1.3/lib/rails/all.rb:14:in block in <top (required)>' from /var/lib/gems/2.3.0/gems/railties-5.1.3/lib/rails/all.rb:12:ineach' from /var/lib/gems/2.3.0/gems/railties-5.1.3/lib/rails/all.rb:12:in <top (required)>' from /home/isaac/buzzrails/config/application.rb:3:inrequire' from /home/isaac/buzzrails/config/application.rb:3:in <top (required)>' from /var/lib/gems/2.3.0/gems/spring-2.0.2/lib/spring/application.rb:92:inrequire' from /var/lib/gems/2.3.0/gems/spring-2.0.2/lib/spring/application.rb:92:in preload' from /var/lib/gems/2.3.0/gems/spring-2.0.2/lib/spring/application.rb:153:inserve' from /var/lib/gems/2.3.0/gems/spring-2.0.2/lib/spring/application.rb:141:in block in run' from /var/lib/gems/2.3.0/gems/spring-2.0.2/lib/spring/application.rb:135:inloop' from /var/lib/gems/2.3.0/gems/spring-2.0.2/lib/spring/application.rb:135:in run' from /var/lib/gems/2.3.0/gems/spring-2.0.2/lib/spring/application/boot.rb:19:in' from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from -e:1:in `'

I've tried restarting spring but it didn't work. Any ideas?

Aucun commentaire:

Enregistrer un commentaire