Note: Rails best practice
04 Jun 2014update_attribute
Watch out for update_attribute
, it doesn’t run model validations. But update_attributes
does.
#count, #length and #size for ActiveRecord
- Use #size
- Use #length if you’ll need to load the real records immediately
Your Comments
comments powered by Disqus