helper_method Declare a controller method as a helper. For example, helper_method :link_to def link_to(name, options) … end makes the link_to controller method available in the view. 课程遇到的如current_cart,current_user. 声明后,就可以在view里面使用这个method了. finder…