问题
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
回答1:
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.
来源:https://stackoverflow.com/questions/14071372/where-is-the-checkoutcontrolleredit-in-spree