我将如何在rails 3中使用responds_to_parent插件3.我在rails 2.3.5中使用过它。那时没有错误。但是当我转移到轨3它显示以下错误在rails 3中的responds_to_parent 3
undefined local variable or method `erase_redirect_results'.
如何解决此问题?
我将如何在rails 3中使用responds_to_parent插件3.我在rails 2.3.5中使用过它。那时没有错误。但是当我转移到轨3它显示以下错误在rails 3中的responds_to_parent 3
undefined local variable or method `erase_redirect_results'.
如何解决此问题?
像他的问题跟踪报告:http://github.com/markcatley/responds_to_parent/issues#issue/1
这个插件是不是Rails 3的兼容。
您有4种选择:
在Rails 3.1中,'responds_to_parents'不起作用,因为它使用了库'PrototypeHelper',并且此库在3.1中已被删除。
http://apidock.com/rails/ActionView/Helpers/PrototypeHelper
在rails> 3.0中,您可以随时用'remotipart'替换'responds_to_parent'。
os.alfajango.com/remotipart/
https://github.com/JangoSteve/remotipart
轨3.0支持固定在1.1.0版本中,不知道3.1+
下面是实施轨道〜> 3.2 https://github.com/Gonzih/respond_to_parent
这不会在Rails的工作3.1因为ActionView :: Helpers :: PrototypeHelper已被删除,因为@OlivierGrimard在另一评论中说。您可以使用prototype-rails gem将其恢复,但由于Rails 3.1随jQuery提供了默认值,因此使用它们可能会导致冲突。 – dekeguard 2012-11-29 20:43:00