#505 √ resolved
Carl Lerche

Allow identify to take an array of symbols

Reported by Carl Lerche | September 30th, 2008 @ 02:49 AM | in 0.9.9

In the case where resources have a multi parameter key, identify needs to be able to take an array and expand parameters to the methods passed in the array.

Example:


Merb::Router.prepare do
  identify User => [:account, :login] do
    resources :users
  end
end

@user = User.new(:account => "hello", :login => "world")
resource(@user) # => /users/hello/world

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket