RJS Templates for Rails
Download or Read eBook RJS Templates for Rails PDF written by Cody Fauser and published by "O'Reilly Media, Inc.". This book was released on 2006-06-12 with total page 112 pages. Available in PDF, EPUB and Kindle.
Author | : Cody Fauser |
Publisher | : "O'Reilly Media, Inc." |
Total Pages | : 112 |
Release | : 2006-06-12 |
ISBN-10 | : 9780596528096 |
ISBN-13 | : 0596528094 |
Rating | : 4/5 (96 Downloads) |
Book Synopsis RJS Templates for Rails by : Cody Fauser
Book excerpt: 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.