{ :pending => :any}  worked but then i had to write.

if request.get?
  # .......
elsif request.post?
  # .......
else
      raise(ActionController::RoutingError,
            "Route #{request.path} is valid for get or post, not for #
{request.method}")
end

I wanted to specify this in the route.rb and make it more
declarative.

How do is specify this using the routes DSL?

On Jun 4, 3:43 pm, glenn gillen <[email protected]> wrote:
> does { :pending => :any} work? Being able to specify multiple discrete
> methods was an addition in 2.3 I believe.
>
> Glenn
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to