On 12/3/05, Nathaniel S. H. Brown
<nshb-wgYSSEAWXinQT0dZR+AlfA@public.gmane.org>
wrote:> I have tried to hunt down some more information on the RJS templates and
> have found not much more than a few examples on the web.
>
> What I was really looking for was a spec, or API reference which outlines
> all the different methods of the "page" object that is available
within the
> templates.
The main docs aren''t updated until a new version is posted, so
you''ll
have to generate them yourself.
cd path/to/rails/trunk/actionpack
gem rdoc
Then, open path/to/rails/trunk/actionpack/doc/index.html in your
browser and look for
ActionView::Helpers::PrototypeHelper::JavaScriptGenerator
One unlisted method (it''s protected) is #record, which you''ll
see if
you look at the source of the other methods. It''s for outputting raw
javascript if you need it:
page.send :record, "alert(''hello'')"
--
rick
http://techno-weenie.net