gregbell/active_admin — pull request #837 by jcarlson (2011-12-10 23:09:29+00:00)
Title: Allow options hash for routes. 

This allows multiple routes to share the same path with different verbs.

For example, you can now have a 'GET /posts/1/publish' and a 'PUT /posts/1/publish' by using syntax like the following in your resource registration, e.g., 'app/admin/posts.rb':

member_action :publish!, :as => :publish, :method => :put do
resource.publish!
redirect_to [:admin, resource], :notice => "Post was published"
end

member_action :publish, :method => :get do
@post = resource
end