Hi, Colin, you see, I think that listing permitted fields all over
again in the controller can be viewed as repetitiveness. Ideally,
model would just accept the bulk of fields coming from the outside,
validate their presence + conformance, and yell if it isn't the case.
How it is being done now ensures greater flexibility in that
controller can massage + glue up several fields into one etc. before
passing them all to the model. This is good, and I'm not saying this
functionality shouldn't be available, but in the simplest case,
Post.save(params[:post]) should just do the obvious by adhering to
convention over configuration. Just my opinion.

p.s. I don't believe I've top-posted in this thread? Well, unless you
believe that a few of my quote-less posts, such as this one, are top-
posting. I simply click "reply" under relevant post.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to