0
我想通过使用in_place_editor_field来编辑我的对象temp_thing的名称。在rails 3中未初始化的常量in_place_edit
在我看来,我用下面的代码为我的对象@temp_thing:
<%= in_place_editor_field :temp_thing, :name %>
现在
改变名称,然后单击编辑我收到以下错误
Uninitialized constant TempThing
我的模型中定义时,类temp_thing.rb
class Test::TempThing < ActiveRecord::Base
有人想法?什么样的测试可以给我更多的提示?我用萤火虫进行调试。
难道是因为命名空间模型? –