CheckoutController#在哪里编辑疯狂?
我需要使用CheckoutController的edit
操作,我在服务器日志中看到它,我在文档中看到它,但我在gem的代码中找不到它。
魔术在哪里? 狂欢版本是1.2.2
你可以在spree_core
gem中找到它
spree_core-1.3.0/app/controllers/spree/checkout_controller.rb
您可能会发现使用ack等工具搜索文件很有用。 我通过在gems目录中运行ack-grep CheckoutController
找到了它。
请注意, ack-grep
只是ack
的别名,以避免ubuntu上的名称冲突。