Rails 3:我有控制器名称和操作,需要为其获取路径和 http 动词

Rails 3: I have controller name and action and need to get path and http verb for it

在 rails 3.2 中,我需要通过 控制器名称动作名称

请从您的计算机终端写入rake routes | grep matching_controller_name这将显示该路径与http-verb 和action 以及controller 的相关匹配路由的路径。