activescaffold:单击搜索,创建,编辑,显示时无响应

时间:2011-12-25 14:26:48

标签: ruby rubygems crud activescaffold

我正在使用activescaffold来显示我的模型, 模型列表可以正确显示, 但问题是:当我点击搜索,创建,编辑,显示时没有响应。但“删除”效果很好。

有谁知道原因?

my rails version => 该捆绑目前的铁轨锁定在3.0.9

ruby​​ version => ruby 1.9.2p290(2011-07-09)[i386-mingw32]

OS => windows xp x86

从日志中我可以看到html.erb呈现没有任何问题:

Rendered c:/Ruby192/lib/ruby/gems/1.9.1/gems/active_scaffold-3.0.23/frontends/default/views/_form_attribute.html.erb (0.0ms)
Rendered c:/Ruby192/lib/ruby/gems/1.9.1/gems/active_scaffold-3.0.23/frontends/default/views/_form_attribute.html.erb (0.0ms)
  [1m[35mDepartment Load (0.0ms)[0m  SELECT `departments`.* FROM `departments` WHERE `departments`.`id` = 2 LIMIT 1
  [1m[36mDepartment Load (0.0ms)[0m  [1mSELECT `departments`.* FROM `departments`[0m
Rendered c:/Ruby192/lib/ruby/gems/1.9.1/gems/active_scaffold-3.0.23/frontends/default/views/_form_attribute.html.erb (31.2ms)
  [1m[35mRole Load (0.0ms)[0m  SELECT `roles`.* FROM `roles` WHERE `roles`.`id` = 2 LIMIT 1
  [1m[36mRole Load (0.0ms)[0m  [1mSELECT `roles`.* FROM `roles`[0m
Rendered c:/Ruby192/lib/ruby/gems/1.9.1/gems/active_scaffold-3.0.23/frontends/default/views/_form_attribute.html.erb (15.6ms)
Rendered c:/Ruby192/lib/ruby/gems/1.9.1/gems/active_scaffold-3.0.23/frontends/default/views/_form.html.erb (484.4ms)
Rendered c:/Ruby192/lib/ruby/gems/1.9.1/gems/active_scaffold-3.0.23/frontends/default/views/_base_form.html.erb (531.2ms)
Rendered c:/Ruby192/lib/ruby/gems/1.9.1/gems/active_scaffold-3.0.23/frontends/default/views/_update_form.html.erb (546.9ms)
Rendered c:/Ruby192/lib/ruby/gems/1.9.1/gems/active_scaffold-3.0.23/frontends/default/views/_messages.html.erb (0.0ms)
Rendered c:/Ruby192/lib/ruby/gems/1.9.1/gems/active_scaffold-3.0.23/frontends/default/views/_list_inline_adapter.html.erb (15.6ms)
Completed 200 OK in 969ms (Views: 31.2ms | ActiveRecord: 0.0ms)

1 个答案:

答案 0 :(得分:0)

我有类似的问题,我发现在我的application.js文件中我只需要jquery,jquery_ujs和acitve_scaffold;我想念jquery-ui

所以“/app/assets/javascripts/application.js”应如下所示:

//= require query
//= require jquery-ui
//= require jquery_ujs
//= require active_scaffold
//= require_tree .

我希望这有帮助,它对我有用!