Ah wait.  You are using @page.  Try it with a local variable:

render :partial => page

On Nov 13, 2006, at 1:42 PM, Michael Koziarski wrote:

>
>> It does not.  I would get a method_missing on nil when trying to
>> access the variable in the partial template
>
> I'm doing this at present:
>
> <%= render :partial=>@page %>
>
> with _page.rhtml happily working with the page
>
> <%= page.title %>
>
>
>
>
>> On Nov 13, 2006, at 12:53 PM, Michael Koziarski wrote:
>>
>>>
>>> On 11/13/06, Rich Collins <[EMAIL PROTECTED]> wrote:
>>>>
>>>> I added support for spacer_template:
>>>>
>>>> render :partial => @foos, :spacer_template => 'foos/between'
>>>>
>>>> You can also omit :object:
>>>>
>>>> render :partial => @foo
>>>
>>> Doesn't simply helpful already do this?
>>> --
>>> Cheers
>>>
>>> Koz
>>>
>>>>
>>
>>
>>>
>>
>
>
> -- Cheers
>
> Koz
>
> >


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

Reply via email to