Great JavaScript-in-Ruby (RJS) Tutorial: What I Learned
June 20, 2006 § Leave a comment
My colleague Luke Burton has posted a wonderful
RJS
Tutorial. [Read more] for a short list of the new things it taught
me.
RJS
Tutorial. [Read more] for a short list of the new things it taught
me.
? You can insert RJS calls in RHTML
documents, not just RJS documents
documents, not just RJS documents
? The relevant documentation is ActionView::Helpers::PrototypeHelper
and ActionView::Helpers::PrototypeHelper::JavaScriptGenerator::GeneratorMethods
and ActionView::Helpers::PrototypeHelper::JavaScriptGenerator::GeneratorMethods
? RJS handles (most) error catching for
me
me
? You can invoke the AJAX method directly,
for debugging purposes
for debugging purposes
? Prototype’s element_by_id syntax is way
cool: $(“id”)
cool: $(“id”)
Thanks,
Luke!
Leave a Reply