Q:

How to specify a route member inside a block in Rails?

The following code:
map.resources :users, :has_many => :items

Could be written like this in a block:
map.resources :users do |user|
   user.resources :items
end

How could I write the following code in a block?
map.resources :users, :member => { :start => :post }

Also, where could I find documentation on writing routes in blocks?
The Routes Documentation does not seem to show it.
Thank you!

A:

Rails 2.x doesn't allow you to use blocks for member definition.
With Rails 3.x you can write
resources :users do
  member do
    post :start  
  end
end

