Spree中的CheckoutController#编辑在哪里? [英] Where is the CheckoutController#edit in spree?

查看:113
本文介绍了Spree中的CheckoutController#编辑在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用CheckoutController的 edit 动作,并且在服务器日志中看到它,我在文档,但我无法在gem的代码中找到它。



魔法在哪里? Spree版本是1.2.2

解决方案

您可以在 spree_core gem in

  spree_core-1.3.0 / app / controllers / spree / checkout_controller.rb 

您可能会发现使用诸如 ack 来搜索文件。我通过在gems目录中运行 ack-grep CheckoutController 找到它。

请注意, ack-grep 只是 ack的一个别名以避免ubuntu上的名称冲突。


I need to play with edit action of the CheckoutController, and I see it in server logs, I see it in documentation but I can't find it in gem's code.

Where's the magic? Spree version is 1.2.2

解决方案

You can find it inside the spree_core gem in

spree_core-1.3.0/app/controllers/spree/checkout_controller.rb

You might find useful to use tools such as ack to search files. I found it by running ack-grep CheckoutController inside the gems directory.

Note that ack-grep is just an alias for ack to avoid name collision on ubuntu.

这篇关于Spree中的CheckoutController#编辑在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆