In_place_edit controller and "Missing template" error

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

In place editing works like a charm but when I :
def test_inplace_update
xhr :post, :inplace_update, {:id =>2, :name => ‘change_tag’}

I get this error “test_inplace_update(AdminTagsControllerTest):
ActionController::MissingTemplate: Missing template

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


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