edgarjs / ajaxful-rating

Provides a simple way to add rating functionality to your application.
http://rdoc.info/projects/edgarjs/ajaxful-rating
418 stars 127 forks source link

Does't work properly with rails 3.2.3 #71

Closed tomkrus closed 12 years ago

tomkrus commented 12 years ago

If we have new stuff in rails:

config.active_record.whitelist_attributes = true

get error

Can't mass-assign protected attributes:

/axr/model.rb:in 'rate'....

The question is where to put in 'model.rb' attr_accessible?


I just create model rate

edgarjs commented 12 years ago

well, you put it in any place within your model (normally at the top). The rate model is generated by the gem, don't need to create it manually.

tomkrus commented 12 years ago

Yes, of course, I forgot about this, my application is already some years.