# Functional Test - RJS Template not found

**URL:** <https://www.ruby-forum.com/t/functional-test-rjs-template-not-found/154538>\
**Category:** Rails\
**Created:** [December 1, 2008, 1:15pm UTC](https://www.ruby-forum.com/t/functional-test-rjs-template-not-found/154538 "2008-12-01T13:15:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![florian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/898d66/32.png) [@florian](https://www.ruby-forum.com/u/florian)\
**Post date:** [December 1, 2008, 1:15pm UTC](https://www.ruby-forum.com/t/functional-test-rjs-template-not-found/154538/1 "2008-12-01T13:15:31Z")

</div>

Hi Everyone,

i have the following Problem. For one of my controllers im using  
a .js.rjs template for the create action. This works fine in  
development and production mode. However, when i try to run a  
functional test for this action, i get the following error:

ActionView::MissingTemplate: Missing template connectors/create.erb in  
view path […]/app/views:

Only if i explicitly use “render :template =\> ‘connectors/  
create.js.rjs’” the rjs template is found and the test runs through.  
Do you have any idea why the template is not found and used without  
this? Im now at Rails 2.2.2.

Thanks!

Florian
