Go and get Rails 1.1 and you won't need this plugin.
Marcel Molina Jr. recently announced that RJS templates would not be included in the 1.0 release of Rails, but that they might include them as a plugin.
I thought that it was about time for me to learn the plugin system in Rails anyway, so I packaged up all of Sam Stephenson's hard work on the RJS templates from changesets 3078 and 3084 and turned it into a plugin.
This means that you can add the new RJS templates functionality to your application without having to run on the bleeding edge. Please note that the plugin updates quite a few methods from ActiveRecord::Base and ActionView::Base, but mostly in minor ways. Take a look at the changesets, linked to above, for more details.
The plugin should work if you are running the latest Rails gem (0.14.3) or if you are running the stable branch from the subversion repository. If you are running on Edge Rails already then please stop reading now because this plugin won't do anything for you.
Follow these directions to install the plugin from my subversion repository
Now that you have installed the plugin you can proceed with my tutorial or Rick Olson's more advanced tutorial.
Please notify me of any problems or feedback you may have.
Update: The plugin now has its own page
Sorry, comments are closed for this article.
December 2nd, 2005 at 10:53 PM you rule, thank you for this. i was torn between rjs templates and the login engine, as the engine doesn't work on edge rails yet. this will be the best of both worlds, thank you!
December 3rd, 2005 at 12:19 AM Thank you, thank you! Keep up the great work.
December 3rd, 2005 at 01:18 AM Thanks for putting in the work to make rjs templates available to those stuck at 1.0 or lower. Much appreciated.
December 4th, 2005 at 07:42 PM You da man!
December 6th, 2005 at 12:57 AM I tried to run the tests after installing to my vendor/ directory and I'm getting an error that seems to say it can't find action_controller? I'm running rails 0.14.3
December 6th, 2005 at 02:26 AM Justin, Double check that it is installed in vendor/plugins/javascript\_generator\_templates/
December 14th, 2005 at 09:52 PM I get the same error as Justin and I have double-checked to make sure the directory is correct. Also, just upgrades to Rails 1.0. Doesn't seem to help.