Started POST "/rate" for 127.0.0.1 at 2013-12-07 18:54:27 +0600
Processing by RaterController#create as */*
Parameters: {"score"=>"4", "dimension"=>"price", "id"=>"101", "klass"=>"Post"}
[1m[36mUser Load (1.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
[1m[35mPost Load (1.0ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? ORDER BY created_at DESC LIMIT 1 [["id", 101]]
DEPRECATION WARNING: #connection is deprecated in favour of accessing it via the class. (called from create at c:/rails_projects/taskme/app/controllers/rater_controller.rb:7)
[1m[36m (1.0ms)[0m [1mselect count(*) as cnt from rates where rateable_id=101 and rateable_type='Post' and rater_id=1 and dimension='price'[0m
Completed 500 Internal Server Error in 32ms
RuntimeError (`attr_accessible` is extracted out of Rails into a gem. Please use new recommended protection model for params(strong_parameters) or add `protected_attributes` to your Gemfile to use old one.):
app/models/rate.rb:5:in `<class:Rate>'
app/models/rate.rb:1:in `<top (required)>'
app/controllers/rater_controller.rb:7:in `create'
Rendered C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.0ms)
Rendered C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (4.0ms)
Rendered C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (3.0ms)
Rendered C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (150.0ms)
Started GET "/assets/star-off.png" for 127.0.0.1 at 2013-12-07 18:54:27 +0600