Forum: Ruby on Rails Functional Test - RJS Template not found

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Florian (Guest)
on 2008-12-01 14:15
(Received via mailing list)
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.


This topic is locked and can not be replied to.