部署了之后,用户上传自定义头像后 RestClient::Forbidden in AccountController#update 直接 403 了,
应用报错服下,高手们帮忙看看呗!
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.1.5/lib/rails/commands/commands_tasks.rb:81:in block in server'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.1.5/lib/rails/commands/commands_tasks.rb:76:in
tap'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.1.5/lib/rails/commands/commands_tasks.rb:76:in server'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.1.5/lib/rails/commands/commands_tasks.rb:40:in
run_command!'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.1.5/lib/rails/commands.rb:17:in <top (required)>'
script/rails:6:in
require'
RestClient::Forbidden (403 Forbidden):
app/models/user.rb:210:in update_with_password'
app/controllers/account_controller.rb:13:in
update'
Rendered /usr/local/rvm/gems/ruby-2.1.2/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_source.erb (1.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.2/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) Rendered /usr/local/rvm/gems/ruby-2.1.2/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.5ms) Rendered /usr/local/rvm/gems/ruby-2.1.2/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (18.2ms)