Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (10 sloc) 1.66 KB
format title published_on
markdown
Unobtrusive Javascript broken in Edge Rails, small fix release
Thu Aug 10 12:26:00 UTC 2006
Update 15 Feb 2009: The UJS plugin for Rails is no longer actively maintained but you can find the the source on github.

We're currently using Edge Rails and the Unobtrusive Javascript for Rails plugin in the forthcoming Rails Plugin Repository and after a Subversion update today, something seems to have broken the Unobtrusive Javascript plugin.

I'm not sure what caused the breakage but the problem was a minor one; after some investigation it turned out that the unobtrusive javascript controller was not being automatically being required by Rails even though its parent folder had been added to the Rails load path. The fix was as simple as explicitly requiring the controller file and everything is now fine. Release 0.2.1 addresses this issue and also adds an about.yml file containing plugin meta-data.

Update: Please grab Release 0.2.2 instead.

If you are running on Edge Rails you will need to upgrade to this release. The plugin (version 0.2) continues to work just fine if you are running the new Rails 1.1.5 security fix so whatever caused this breakage doesn't appear to be related to the security fix.