Forum: Ruby on Rails RJS Documentation?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
00e3a96684ab390a350b0271e98741d3?d=identicon&s=25 Nshbrown Nshbrown (nshb)
on 2005-12-03 15:41
(Received via mailing list)
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.

Thanks, Nathan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Nathaniel S. H. Brown                           http://nshb.net
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
821395fe70906c8290df7f18ac4ac6cf?d=identicon&s=25 technoweenie (Guest)
on 2005-12-03 16:27
(Received via mailing list)
On 12/3/05, Nathaniel S. H. Brown <nshb@inimit.com> 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
This topic is locked and can not be replied to.