chewmanfoo wrote:
> a tip when using partials: look into :locals option and use it
> extensively. Don't assume that a partial can "see" things from the
> controller - specify what you want the partial to see using :locals.
> It'll pay off in the end.
A most excellent tip. :object and :collection
a tip when using partials: look into :locals option and use it
extensively. Don't assume that a partial can "see" things from the
controller - specify what you want the partial to see using :locals.
It'll pay off in the end.
On Jun 22, 10:39 am, Marnen Laibow-Koser wrote:
> Ar Chron wrote:
> > N
Ar Chron wrote:
> Norm Scherer wrote:
>> Is there some reason that it would be
>> better to do it all in the view?
>
> No.
>
> Ideally, the view is only the presentation layer.
>
> Among other reasons, when you start reusing partials, it will be come
> readily apparent why you want to marshal
Norm Scherer wrote:
> Is there some reason that it would be
> better to do it all in the view?
No.
Ideally, the view is only the presentation layer.
Among other reasons, when you start reusing partials, it will be come
readily apparent why you want to marshal the data in the controller, and
m
4 matches
Mail list logo