开发者

Uninitialized Constant in rails 3 in_place_edit

I want to edit the name of my object temp_thing in place by using the in_place_editor_field.

In my view I use the following code for my object @temp_thing:

<%= in_place_e开发者_如何转开发ditor_field :temp_thing, :name %>

now when changing the name and clicking edit I get the following error

Uninitialized constant TempThing

My Model is defined in the class temp_thing.rb

class Test::TempThing < ActiveRecord::Base

Someone an idea? What tests can give me more hints? I used firebug for debugging.


It must be something because the model is namespaced... Have you tried the following?

<%= in_place_editor_field 'Test::TempThing', :name %>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜