Is there any general guidelines for accessing model objects directly
in the view?
It seems like it would be a potential problem - that it would be
better to keep model objects out of the view entirely. Instead, the
controller should extract whatever data is needed from the model and
put it into temporary objects, thus protecting the views from any
changes in the models and keeping them from causing any problems by
inadvertently calling things in the model.
On the other hand, this in effect creates a new structure just for
passing data from controller to view, when the models already
structure the data in question. That seems like duplicate effort, and
not at all in the spirit of Rails.
Is there any common thought on this?