# UJS for rails plugin Installation problems

**URL:** <https://www.ruby-forum.com/t/ujs-for-rails-plugin-installation-problems/139106>\
**Category:** Rails\
**Created:** [May 30, 2008, 9:37pm UTC](https://www.ruby-forum.com/t/ujs-for-rails-plugin-installation-problems/139106 "2008-05-30T21:37:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Applejus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e5b9ba/32.png) [@Applejus](https://www.ruby-forum.com/u/Applejus)\
**Post date:** [May 30, 2008, 9:37pm UTC](https://www.ruby-forum.com/t/ujs-for-rails-plugin-installation-problems/139106/1 "2008-05-30T21:37:57Z")

</div>

Hello,

I downloaded and installed the latest UJS plugin.  
I first got the error “uninitialized constant UJS” and this error  
wouldn’t  
go away no matter where I place the “UJS::routes” line in the routes.rb  
file. The only way I found to get rid of this error is to run “rake  
tmp:sessions:clear” but then I get another error which is “can’t convert  
Symbol into String” which refers to the symbol :unobtrusive that I added  
to  
the javascript\_tag as follows:  
\<%= javascript\_include\_tag ‘protoype’, :unobtrusive%\>

Looks like rails can’t load or find the UJS functions, because at some  
point, and I don’t know how, I got the error “apply\_behaviour” not  
defined…

Any ideas how to solve this problem and get UJS working?

–  
View this message in context:  
[http://www.nabble.com/UJS-for-rails-plugin-Installation-problems-tp17553119p17553119.html](http://www.nabble.com/UJS-for-rails-plugin-Installation-problems-tp17553119p17553119.html)  
Sent from the RubyOnRails Users mailing list archive at [Nabble.com](http://Nabble.com).
