本文介绍了active_scaffold挂在无限循环上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在我的Rails(3.0,ruby 1.8.7)项目中尝试使用active scaffold
(3.0.26).我在页面上添加了一个简单的标书:
I'm trying to use active scaffold
(3.0.26) in my Rails (3.0, ruby 1.8.7) project. I've added a simple tender to my page:
<%= render :active_scaffold => 'users', :constraints => {:gender => "male"}%>
当我进入该页面时,应用程序启动无限循环.消耗越来越多的资源,唯一的解决方案是kill -9
服务器进程.感觉像是一个基本错误,但我不知道我做错了什么.你可以帮帮我吗?
When I enter that page, application starts an infinite loop. consumes more and more resources and the only solution is to kill -9
the server process. It feels like a basic mistake, but I don't know, what I did wrong. Could you help me?
推荐答案
请不要使用Active Scaffold.这是一个非常老旧的越野车项目.我建议使用 rails_admin .
Please don't use Active Scaffold. It's a really old and buggy project. I would recommend the use of rails_admin instead.
这篇关于active_scaffold挂在无限循环上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!