On 23 Apr 2008, at 16:49, Perry Smith wrote:
>
> I got myself rather confused yesterday. It started when I put a
> "form_remote_tag" in a helper method. I get the error that
_erbout is
> not defined. I dug around and found suggestions to put it into a
> template and do render(:partial => ''foo'', ...).
>
> I was curious what magic render did that the helper was not doing on
> its
> own. That led me to bump into more confusion. Obviously the code
> works
> but I''m somewhat lost as to how. Here is my specific question.
>
> In render :partial, it calls render_for_text which sets
> @performed_render to true. That implies to me that I can not call
> render again for another partial but I know from past experience
> that I
> can.
it''s reset later in this particular case>
>
> Both of these tie back to the environment that is set up when a
> template
> is rendered. I''d like to know where that code is at and if there
is
> some high''ish level documentation that can help me get started in
> understanding how these things work.
>
start from base.rb in rails/actionpack/lib/action_view/ (and also in
action_controller). As far as I know there isn''t documention about
this level of implementation detail other than the code. A lot of this
is currently being tidied up.
Fred
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---