rails 5不支持remortipart gem,因此建议另一种remotipart gem解决方案来更改remortipart gem上使用的代码 ref_at:https://github.com/JangoSteve/remotipart/issues/202#issuecomment-498658815 一起使用active_scaffold和remotipart会产生SystemStackError:堆栈级别太深:
active_scaffold-3.5.2 / lib / active_scaffold / extensions / action_controller_rendering.rb:14:in render'
remotipart-1.4.2/lib/remotipart/render_overrides.rb:16:in
render_with_remotipart'
active_scaffold-3.5.2 / lib / active_scaffold / extensions / action_controller_rendering.rb:14:in render'
remotipart-1.4.2/lib/remotipart/render_overrides.rb:16:in
render_with_remotipart'
active_scaffold-3.5.2 / lib / active_scaffold / extensions / action_controller_rendering.rb:14:in render'
remotipart-1.4.2/lib/remotipart/render_overrides.rb:16:in
render_with_remotipart'
[...]
看到
https://groups.google.com/forum/#!topic/activescaffold/Aqpcb0THyK0
进行讨论并提出可能的解决方案。它说应该用别名替换别名。