Description |
1 online resource |
Series |
O'Reilly short cuts |
|
O'Reilly short cuts.
|
Summary |
RJS templates are an exciting and powerful new type of template added to Rails 1.1. Unlike conventional Rails templates that generate HTML or XML, RJS templates generate JavaScript code that is executed when it is returned to the browser. This JavaScript generation allows you to perform multiple page updates in-place without a page reload using Ajax. All the JavaScript you need is generated from simple templates written in Ruby. This document helps you get acquainted with how RJS templates fit into the Rails framework and gets you started with a few easy-to-follow examples. |
Bibliography |
Includes web resources. |
Contents |
Introduction; What Is RJS?; Who Should Read this Document?; Rails Version; Acknowledgments; Getting Started with a Simple Application; RJS and Rails; Debugging; Development Mode Debugging; Monitoring the Logfile; ActionController; Default View; Layouts; Rendering; Inline Rendering; Browser Redirection; ActionView; Element, Class, and Collection Proxies; Element Proxies; Class Proxies; Collection Proxies; Making Ajax Calls with Rails; Helpers; RJS in Practice: The Expense Tracker; Creating the Models; Defining the Controllers; Setting Up a Route; Creating an Application Layout |
|
Entering Some DataCreating the Views; What We Have So Far; FireBug: Awesome JavaScript Utility; What Is FireBug?; Installation; A Brief Tour; Enhancing the Expense Tracker; Ajax Activity Indicator; Ajax Global Responders; Model Validations; Adding Some Calculations; Refactoring with RJS Helpers; A Look Ahead; RJS Reference; JavaScriptGenerator; JavaScriptElementProxy; JavaScriptCollectionProxy; Block Variables and the Enumerable methods; Inspecting the Results of the Enumerations; Method Reference; Visual Effects; Appendix; Bibliography; Online Resources; Prototype; Scriptaculous; RJS |
Subject |
Ruby (Computer program language)
|
|
Web site development.
|
|
Ruby (Langage de programmation) |
|
Sites Web -- Développement. |
|
Ruby (Computer program language) |
|
Web site development. |
|
Ruby (Computer program language) |
|
Web site development |
Other Form: |
Print version: Fauser, Cody. RJS templates for Rails. Sebastopol, California : O'Reilly, 2006 56 pages : color illustrations. O'Reilly short cuts 0596528094 (OCoLC)85789243 |
ISBN |
9780596528096 (electronic bk.) |
|
0596528094 (electronic bk.) |
|