gpt4 book ai didi

ruby - activescaffold:点击搜索、创建、编辑、显示无 react

转载 作者:太空宇宙 更新时间:2023-11-03 16:56:17 25 4
gpt4 key购买 nike

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

有谁知道原因吗?

我的 rails 版本 =>该 bundle 目前已锁定在 3.0.9

ruby 版本 => ruby 1.9.2p290 (2011-07-09) [i386-mingw32]

操作系统=>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)

最佳答案

我有一个类似的问题,我发现在我的 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 .

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

关于ruby - activescaffold:点击搜索、创建、编辑、显示无 react ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8630020/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com