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 method
cache_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:in
require' 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:in
require' 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:in
require' 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:in
require' 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:in
require' 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:in
each' 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:in
require' 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:in
require' 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:in
serve' 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:in
loop' 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:in
require' from -e:1:in `'
I've tried restarting spring but it didn't work. Any ideas?
Aucun commentaire:
Enregistrer un commentaire