我正在查看Checkout Controller (https://github.com/spree/spree/blob/0-60-stable/core/app/controllers/checkout_controller.rb)的源代码,但未在此处找到编辑操作。它在哪里定义?
最佳答案
CheckoutController具有隐式的编辑操作。编辑本身没有直接的逻辑。
但是,根据结帐所处的状态,有before_filter:load_order依次触发before_ [state]回调方法。
关于ruby-on-rails - 编辑Checkout Controller 的 Action ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5922500/