Functional Test - RJS Template not found

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs