# Getting Started on RJS Templates

**URL:** <https://www.ruby-forum.com/t/getting-started-on-rjs-templates/100884>\
**Category:** Rails\
**Created:** [August 1, 2006, 7:58pm UTC](https://www.ruby-forum.com/t/getting-started-on-rjs-templates/100884 "2006-08-01T19:58:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidjrice](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5e9695/32.png) [@davidjrice](https://www.ruby-forum.com/u/davidjrice)\
**Post date:** [August 1, 2006, 7:58pm UTC](https://www.ruby-forum.com/t/getting-started-on-rjs-templates/100884/1 "2006-08-01T19:58:04Z")

</div>

I definitely need to use RJS templates for my current application. I’ve  
used Google for the past twenty minutes or so, yet I can’t find a good  
resource that will get me started and show me what the page object can  
do.  
Any links?

When an Ajax link is clicked, I’m trying to change the background of a  
“primary” list item, as well as the background and text of the list item  
in  
which the link was clicked. RJS seems the simplest way to do this, am I  
right?

- David

---

<div class="post-metadata">

**Author:** ![davidjrice](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5e9695/32.png) [@davidjrice](https://www.ruby-forum.com/u/davidjrice)\
**Post date:** [August 1, 2006, 8:52pm UTC](https://www.ruby-forum.com/t/getting-started-on-rjs-templates/100884/2 "2006-08-01T20:52:31Z")

</div>

> I definitely need to use RJS templates for my current application. I’ve  
> used Google for the past twenty minutes or so, yet I can’t find a good  
> resource that will get me started and show me what the page object can do.  
> Any links?
> 
> When an Ajax link is clicked, I’m trying to change the background of a  
> “primary” list item, as well as the background and text of the list item in  
> which the link was clicked. RJS seems the simplest way to do this, am I  
> right?

[http://www.google.com/search?q=rails+rjs](http://www.google.com/search?q=rails+rjs)

first link?

---

<div class="post-metadata">

**Author:** ![davidjrice](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5e9695/32.png) [@davidjrice](https://www.ruby-forum.com/u/davidjrice)\
**Post date:** [August 1, 2006, 9:02pm UTC](https://www.ruby-forum.com/t/getting-started-on-rjs-templates/100884/3 "2006-08-01T21:02:05Z")

</div>

While that page helps, it gives me no information about all of the  
different  
methods available to the page object, and, as I’ve recently learned  
about in  
the past few minutes, what can be done with ‘select’ in RJS.

---

<div class="post-metadata">

**Author:** ![davidjrice](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5e9695/32.png) [@davidjrice](https://www.ruby-forum.com/u/davidjrice)\
**Post date:** [August 1, 2006, 9:48pm UTC](https://www.ruby-forum.com/t/getting-started-on-rjs-templates/100884/4 "2006-08-01T21:48:34Z")

</div>

David R. wrote:

> While that page helps, it gives me no information about all of the  
> different  
> methods available to the page object, and, as I’ve recently learned  
> about in  
> the past few minutes, what can be done with ‘select’ in RJS.

[http://api.rubyonrails.com/classes/ActionView/Helpers/PrototypeHelper/JavaScriptGenerator/GeneratorMethods.html](http://api.rubyonrails.com/classes/ActionView/Helpers/PrototypeHelper/JavaScriptGenerator/GeneratorMethods.html)

regards,  
rolando.-

---

<div class="post-metadata">

**Author:** ![davidjrice](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5e9695/32.png) [@davidjrice](https://www.ruby-forum.com/u/davidjrice)\
**Post date:** [August 1, 2006, 11:00pm UTC](https://www.ruby-forum.com/t/getting-started-on-rjs-templates/100884/5 "2006-08-01T23:00:49Z")

</div>

On Tuesday 01 August 2006 19:56, David R. wrote:

> I definitely need to use RJS templates for my current application.  
> I’ve used Google for the past twenty minutes or so, yet I can’t find  
> a good resource that will get me started and show me what the page  
> object can do. Any links?

If you don’t mind spending the money equivalent of a short time of  
searching for yourself, I recommend

Code Fauser  
RJS Templates for Rails  
[http://www.oreilly.com/catalog/rjsrails/index.html](http://www.oreilly.com/catalog/rjsrails/index.html)  
PDF download, $9,99

Michael

–  
Michael S.  
[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://www.schuerig.de/michael/](http://www.schuerig.de/michael/)

---

<div class="post-metadata">

**Author:** ![davidjrice](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5e9695/32.png) [@davidjrice](https://www.ruby-forum.com/u/davidjrice)\
**Post date:** [August 2, 2006, 1:03am UTC](https://www.ruby-forum.com/t/getting-started-on-rjs-templates/100884/6 "2006-08-02T01:03:40Z")

</div>

Michael S. wrote:

> On Tuesday 01 August 2006 19:56, David R. wrote:
> 
> > I definitely need to use RJS templates for my current application.?  
> > I’ve used Google for the past twenty minutes or so, yet I can’t find  
> > a good resource that will get me started and show me what the page  
> > object can do.? Any links?
> 
> If you don’t mind spending the money equivalent of a short time of  
> searching for yourself, I recommend
> 
> Code Fauser  
> RJS Templates for Rails  
> [http://www.oreilly.com/catalog/rjsrails/index.html](http://www.oreilly.com/catalog/rjsrails/index.html)  
> PDF download, $9,99
> 
> Michael
> 
> –  
> Michael S.  
> [mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [http://www.schuerig.de/michael/](http://www.schuerig.de/michael/)

I can second Michael S’s suggestion. It is worth the $9.99 as I  
purchased it a week or so ago. You may also find this helpful:

[http://www.rubyinside.com/16-rjs-resources-and-tutorials-for-rails-programmers-5.html](http://www.rubyinside.com/16-rjs-resources-and-tutorials-for-rails-programmers-5.html)

Note - I found the link above before I purchased the book but still  
ended up purchasing the book and it was helpful.

Regards,

Michael
