This post originated from an RSS feed registered with Ruby Buzz
by Jason Perry.
Original Post: attr_protected my left foot.
Feed Title: Ambethia
Feed URL: http://ambethia.com/feed
Feed Description: The journal and personal website of Jason L Perry, dealing in development, design and distractions.
I don’t like the idea of attr_protected, and attr_accessible in ActiveRecord.
They makes me put more code in the controller, and sometimes worse, I’m forced to express model ideas in the controller.
They make me put things in the model that should be handled by the controller.
From the Rails API docs:
This is meant to protect sensitive attributes [...]