Why does your controller not have enough information to make this
decision,
but your view does?
This type of work should be kept out of the view code and kept in the
controller. That’s what MVC is about, and will help you in the future
when
your app needs to be maintained.
Why does your controller not have enough information to make this
decision,
but your view does?
This type of work should be kept out of the view code and kept in the
controller. That’s what MVC is about, and will help you in the future
when
your app needs to be maintained.
I agree ;). But it’s just a generic sub template that does one of the
following:
links to a file (image, flash)
includes another file (text)
renders a template in a database field
or (hopefully) redirects to another site
csn
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.