>
> >> If it is literally something as simple as MyArray.all I believe there
> >> is nothing wrong with calling the model direct from the view.
> >>
> >
> > It's dirty, horrible, bad form, breaks the separation of layers...
> Beware of the MVC police Colin, this suggestion will certanly not get
> good housekeeping seal of approval :D
>

It's not about MVC policing, I couldn't give a monkey's what you do in your
app, but given that there is an easy way of handling it shouldn't you
describe the correct method to any new developers.


> I agree through. I'm not gonna add a before filter just to set
> MyArray.all into a class variable. I'd rather call it directly and claim
> to be pragmatic.
>

How do you work out duplicating a line of code in every action is being
"pragmatic"?

DRY mean anything to ya?

Cheers,


Andy

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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-talk?hl=en.

Reply via email to