# In\_place\_edit controller and "Missing template" error

**URL:** <https://www.ruby-forum.com/t/in-place-edit-controller-and-missing-template-error/92821>\
**Category:** Rails\
**Created:** [April 24, 2007, 5:47pm UTC](https://www.ruby-forum.com/t/in-place-edit-controller-and-missing-template-error/92821 "2007-04-24T17:47:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuno](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/65b543/32.png) [@nuno](https://www.ruby-forum.com/u/nuno)\
**Post date:** [April 24, 2007, 5:47pm UTC](https://www.ruby-forum.com/t/in-place-edit-controller-and-missing-template-error/92821/1 "2007-04-24T17:47:24Z")

</div>

Hello, I’ve this action which runs ok from a browser but fails from a  
functional test :

def inplace\_update  
tag = Tag.find(params[:id])  
tag.update\_attributes!(:name =\> params[:value])  
render :text =\> tag.name  
end

In place editing works like a charm but when I :  
def test\_inplace\_update  
xhr :post, :inplace\_update, {:id =\>2, :name =\> ‘change\_tag’}  
end

I get this error “test\_inplace\_update(AdminTagsControllerTest):  
ActionController::MissingTemplate: Missing template  
/usr/local/www/ror\_dev/config/…/app/views/admin\_tags/inplace\_update.rhtml”

I don’t understand why the render :text is skipped when under test

Thanks
