I was searching for something about rails and find a very interesting thing. The Ajax Scaffold Generator.
The ajax scaffold generator is just too simple!.
One thing you must remember if using this ajax scaffold generator is that the browser back buttn might not work. I liked it very much and highly recomend this tool.

you can install this by issuing the following:
gem install ajax_scaffold

If you are interested in learning RJS template then you must go through its code in lib dirctory.
Find RJS template book here http://www.oreilly.com/catalog/rjsrails/