Global documentation for Rails'' ActionView

Perry Smith
Wed, 23 Apr 2008 15:49:28 -0000

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.

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.

Thank you for your time,
pedz
--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---