Re: Problem with layout for partials

morgler
2009-01-13T14:46:49Z

usually it should work without the ":object => @my_profile" part
(and
i tried that). however, since relying on global variables like
@my_profile in a partial isn''t nice coding style anyway. so i tried to
pass the variable explicitly to the partial. i would have expected the
variable @my_profile to appear as "layout" in my _layout partial (and
as "private" in my _private partial). however, the "layout"
variable
is not defined in my _layout partial :(. btw: i also tried "@layout",
but this isn''t defined either).

On 13 Jan., 14:56, MaD
<mayer.domi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> a no, forget what i just said. this should only work, if you have a
> Private-model.
> sorry, getting a bit tired.