# What happens to RJS in Rails 3

**URL:** <https://www.ruby-forum.com/t/what-happens-to-rjs-in-rails-3/183388>\
**Category:** Rails\
**Created:** [February 12, 2010, 8:51pm UTC](https://www.ruby-forum.com/t/what-happens-to-rjs-in-rails-3/183388 "2010-02-12T20:51:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emery\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/258eb7/32.png) [@Emery\_F](https://www.ruby-forum.com/u/Emery_F)\
**Post date:** [February 12, 2010, 8:51pm UTC](https://www.ruby-forum.com/t/what-happens-to-rjs-in-rails-3/183388/1 "2010-02-12T20:51:14Z")

</div>

I know that Rails 3 ideal of unobtrusive javascript will result in the  
removal of all inline javascript. But where does that leave RJS?

It looks like PrototypeGenerator is still a part of the Rails core, so  
I’m going to assume that RJS templates will remain unchanged. Still  
looks like gems/plugins such JRals will be necessary for use of other  
JS frameworks.

Can anyone confirm or deny the fate of RJS in Rails 3?

---

<div class="post-metadata">

**Author:** ![Emery\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/258eb7/32.png) [@Emery\_F](https://www.ruby-forum.com/u/Emery_F)\
**Post date:** [February 12, 2010, 9:04pm UTC](https://www.ruby-forum.com/t/what-happens-to-rjs-in-rails-3/183388/2 "2010-02-12T21:04:42Z")

</div>

On Feb 12, 7:49 pm, Emery F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I know that Rails 3 ideal of unobtrusive javascript will result in the  
> removal of all inline javascript. But where does that leave RJS?
> 
> It looks like PrototypeGenerator is still a part of the Rails core, so  
> I’m going to assume that RJS templates will remain unchanged. Still  
> looks like gems/plugins such JRals will be necessary for use of other  
> JS frameworks.
> 
> Can anyone confirm or deny the fate of RJS in Rails 3?

Lazy answer: grab the beta and find out!

Fred

---

<div class="post-metadata">

**Author:** ![Emery\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/258eb7/32.png) [@Emery\_F](https://www.ruby-forum.com/u/Emery_F)\
**Post date:** [February 12, 2010, 9:29pm UTC](https://www.ruby-forum.com/t/what-happens-to-rjs-in-rails-3/183388/3 "2010-02-12T21:29:52Z")

</div>

On Feb 12, 1:49 pm, Emery F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I know that Rails 3 ideal of unobtrusive javascript will result in the  
> removal of all inline javascript. But where does that leave RJS?
> 
> It looks like PrototypeGenerator is still a part of the Rails core, so  
> I’m going to assume that RJS templates will remain unchanged. Still  
> looks like gems/plugins such JRals will be necessary for use of other  
> JS frameworks.
> 
> Can anyone confirm or deny the fate of RJS in Rails 3?

I believe that RJS will still exist, and it will still use prototype  
by default; but in Rails 3, it’s easier to swap in other "RJS  
adapters,: and I think that Rails 3 will ship with a jQuery adapter as  
well in case you don’t want to use prototype.

But it’s not been easy for me to keep up with the details in Rails 3,  
so I might be wrong and getting the latest beta build is the best way  
to go . (Seems to me Rails 3 has been driven by Yehuda more than the  
community, I don’t think there was a roadmap for project plan of any  
sort that would helped to alleviate questions like this one).

Jeff
