Rails 3 中的responds_to_parent
我将如何在rails 3中使用responds_to_parent插件。我在rails 2.3.5中使用过它。当时没有任何错误。但是当我转向 Rails 3 时,它显示以下错误
undefined local variable or method `erase_redirect_results'.
如何解决这个问题?
How I will use responds_to_parent plug in rails 3. I had used it in rails 2.3.5. At that time there was no errors. But when I shifted to rails 3 its showing the following error
undefined local variable or method `erase_redirect_results'.
How to solve this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
使用 https://github.com/itkin/respond_to_parent
Use https://github.com/itkin/respond_to_parent
这是 Rails 的实现 ~> 3.2
https://github.com/Gonzih/respond_to_parent
Here is implementation for rails ~> 3.2
https://github.com/Gonzih/respond_to_parent
在 Rails 3.1 中,“responds_to_parents”不起作用,因为它使用库“PrototypeHelper”,并且该库已在 3.1 中删除。
http://apidock.com/rails/ActionView/Helpers/PrototypeHelper
在 Rails 中 > 3.0,您可以随时将 'responds_to_parent' 替换为 'remotipart'。
os.alfajango.com/remotipart/
https://github.com/JangoSteve/remotipart
In Rails 3.1 'responds_to_parents' doesn't works because it use the library 'PrototypeHelper' and this library has been removed in 3.1.
http://apidock.com/rails/ActionView/Helpers/PrototypeHelper
In rails >3.0, you can always replace 'responds_to_parent' by 'remotipart'.
os.alfajango.com/remotipart/
https://github.com/JangoSteve/remotipart
喜欢关于他的问题跟踪器的报告:http://github.com/markcatley/responds_to_parent/issues# issues/1
该插件与 Rails 3 不兼容。
您有 4 个选择:
Like report on his issue tracker : http://github.com/markcatley/responds_to_parent/issues#issue/1
This plugin is not Rails 3 compatible.
You have 4 choices :
Rails 3.0 支持已在 1.1.0 版本中修复,不确定 3.1+
rails 3.0 support is fixed in version 1.1.0, not sure about 3.1+