# VERY simple question moving to RAILS 2

**URL:** <https://www.ruby-forum.com/t/very-simple-question-moving-to-rails-2/135096>\
**Category:** Rails\
**Created:** [April 17, 2008, 9:14pm UTC](https://www.ruby-forum.com/t/very-simple-question-moving-to-rails-2/135096 "2008-04-17T21:14:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![apswartz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71e660/32.png) [@apswartz](https://www.ruby-forum.com/u/apswartz)\
**Post date:** [April 17, 2008, 9:14pm UTC](https://www.ruby-forum.com/t/very-simple-question-moving-to-rails-2/135096/1 "2008-04-17T21:14:01Z")

</div>

In the old rails, I could just put a .rjs file and it would  
automagically work . ie, action is new\_child, it would use  
new\_child.rjs as the view.

However, in rails 2.02 I am getting a  
“ActionController::MissingTemplate (Missing template  
tasks/new\_child.html.erb in view path  
/Users/alan/Projects/superb/app/views):” error.

I have it now as “new\_child.js.rjs” to go along with the new  
content.generator type.

What am I missing?

Thanks,

Alan

---

<div class="post-metadata">

**Author:** ![apswartz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71e660/32.png) [@apswartz](https://www.ruby-forum.com/u/apswartz)\
**Post date:** [April 17, 2008, 9:32pm UTC](https://www.ruby-forum.com/t/very-simple-question-moving-to-rails-2/135096/2 "2008-04-17T21:32:13Z")

</div>

Found it. Sorry for clogging the list. It turns out that while in  
old rails, you could get away with depending it to use request.xhr? to  
do the right thing, now you need a:  
format.js # new\_child.js.rjs

line. On to the next “opportunity”

Thanks,

Alan
