On Tue, May 26, 2009 at 19:42, cainlevy <[email protected]> wrote:

>
> I'm still struggling a bit for clear reasons why it might be better to
> filter the attributes controller-side or model-side.


To me it sounds like a responsibility of the controller. It is the one
receiving the parameters, selecting the relevant ones and passing them down
to models.

On the other hand, having attribute filtering in the controllers would
require a bit of sync between model and controller code. I like to avoid
controller having too much knowledge of model attributes, myself.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to