# Rails 1.0 & RJS Templates

**URL:** <https://www.ruby-forum.com/t/rails-1-0-rjs-templates/50313>\
**Category:** Rails\
**Created:** [December 15, 2005, 2:01am UTC](https://www.ruby-forum.com/t/rails-1-0-rjs-templates/50313 "2005-12-15T02:01:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@jason](https://www.ruby-forum.com/u/jason)\
**Post date:** [December 15, 2005, 2:01am UTC](https://www.ruby-forum.com/t/rails-1-0-rjs-templates/50313/1 "2005-12-15T02:01:32Z")

</div>

Hello all,

I just successfully updated my dev env to Rails 1.0. I then wanted to  
get .rjs templates working and followed Cody’s instructions at  
[http://www.codyfauser.com/articles/2005/12/02/rails-rjs-templates-plugin](http://www.codyfauser.com/articles/2005/12/02/rails-rjs-templates-plugin)  
. However, when I try to run ‘rake test’ I get the following error:

(in  
/Users/jason/projects/workarea/biolexis/trunk/rails/vendor/plugins/javascript\_generator\_templates)  
/opt/local/bin/ruby -Ilib:lib  
“/opt/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/rake\_test\_loader.rb”  
“test/controller/new\_render\_test.rb”  
./test/controller/…/abstract\_unit.rb:10:in `require': No such file to load -- action_controller (LoadError) from ./test/controller/../abstract_unit.rb:10 from ./test/controller/new_render_test.rb:1:in `require’  
from ./test/controller/new\_render\_test.rb:1  
from  
/opt/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/rake\_test\_loader.rb:5:in  
`load' from /opt/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/rake_test_loader.rb:5 from /opt/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/rake_test_loader.rb:5:in `each’  
from  
/opt/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/rake\_test\_loader.rb:5  
rake aborted!  
Command failed with status (1): [/opt/local/bin/ruby -Ilib:lib  
"/opt/local/…]

I have Ruby and Gems installed via Darwinports and my environment (even  
w/lighttpd) works fine. However, it seems like the above is not able to  
find the action\_controller file(s), which are clearly available and  
found by my app.

Anyone have any experiences with something similar to this and know of a  
possible solution? I’m trying to figure out if there’s something I  
forgot to set somewhere, but am drawing blanks. One thing I did do way  
symlink my /usr/bin/ruby → /opt/local/bin/ruby so I wouldn’t get  
further problems when I upgraded any of the Rails libs.

Thanks,

- jason

---

<div class="post-metadata">

**Author:** ![jason](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@jason](https://www.ruby-forum.com/u/jason)\
**Post date:** [December 15, 2005, 5:07am UTC](https://www.ruby-forum.com/t/rails-1-0-rjs-templates/50313/2 "2005-12-15T05:07:11Z")

</div>

> I just successfully updated my dev env to Rails 1.0. I then wanted to  
> get .rjs templates working and followed Cody’s instructions at  
> [http://www.codyfauser.com/articles/2005/12/02/rails-rjs-templates-plugin](http://www.codyfauser.com/articles/2005/12/02/rails-rjs-templates-plugin)  
> . However, when I try to run ‘rake test’ I get the following error:

## RJS is not a 1.0 feature. It’s scheduled for 1.1. You can do “rake freeze\_edge” if you want to try it out (along with the rest of the development version of Rails).

David Heinemeier H.  
[http://www.loudthinking.com](http://www.loudthinking.com) – Broadcasting Brain  
[http://www.basecamphq.com](http://www.basecamphq.com) – Online project management  
[http://www.backpackit.com](http://www.backpackit.com) – Personal information manager  
[http://www.rubyonrails.com](http://www.rubyonrails.com) – Web-application framework

---

<div class="post-metadata">

**Author:** ![jason](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@jason](https://www.ruby-forum.com/u/jason)\
**Post date:** [December 15, 2005, 3:48pm UTC](https://www.ruby-forum.com/t/rails-1-0-rjs-templates/50313/3 "2005-12-15T15:48:05Z")

</div>

Jason,

As David mentioned, the best way to run RJS is to put your project on  
edge Rails. You can follow the directions at  
[http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates](http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates) to  
help walk you through the process.

Cody

On 12/14/05, David Heinemeier H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> [http://www.loudthinking.com](http://www.loudthinking.com) – Broadcasting Brain  
> [http://www.basecamphq.com](http://www.basecamphq.com) – Online project management  
> [http://www.backpackit.com](http://www.backpackit.com) – Personal information manager  
> [http://www.rubyonrails.com](http://www.rubyonrails.com) – Web-application framework
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–  
[http://www.codyfauser.com](http://www.codyfauser.com)
