# Functional Test - RJS Template not found

**URL:** <https://discuss.rubyonrails.org/t/functional-test-rjs-template-not-found/36897>\
**Category:** rubyonrails-talk\
**Created:** [December 1, 2008, 11:57am UTC](https://discuss.rubyonrails.org/t/functional-test-rjs-template-not-found/36897 "2008-12-01T11:57:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Florian1](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@Florian1](https://discuss.rubyonrails.org/u/Florian1)\
**Post date:** [December 1, 2008, 11:57am UTC](https://discuss.rubyonrails.org/t/functional-test-rjs-template-not-found/36897/1 "2008-12-01T11:57:07Z")

</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
