我做了这样的会员操作:
member_action :send_by_email, :method => :get
它应该执行 Admin::CardsController/send_by_email 但它不是,我不启动控制器操作。
我的文件是 app/controllers/admin 中的 cards_controller.rb
class Admin::CardsController < ApplicationController
def send_by_email
raise "ok"
end
end
当我做 rake 路线时,我得到了:
send_by_email_admin_card GET /admin/cards/:id/send_by_email(.:format) admin/cards#send_by_email
任何想法?