[Rails] Re: MVC design good/bad
Thibaut Barrère
thibaut.barrere at gmail.com
Wed Jan 18 10:31:59 GMT 2006
>
> > Any SQL goes in the model. Period.
>
> I like this approach (and by SQL I assume you mean both the normal find
> and find_by_sql), does anyone else do this or do you think it's taking
> the MVC a little too far?
Except for very small applications, I tend to put everything in the model
also, or at least in a helper.
I write tests quite often (TDD or not) and I feel I have a better grasp on
the code I'm testing when I test the model or a helper, compared to testing
a view.
Thibaut
--
[blog] http://www.dotnetguru2.org/tbarrere
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060118/66cdf826/attachment.html
More information about the Rails
mailing list