a=[:x,:y,:z] # => [:x, :y, :z]
a.map{|a|} # => [nil, nil, nil]
a # => :z
map.with_options :controller => 'users',
:action => 'show' do |map|
map.user_groups '/users/:id/groups', :section => 'groups'
map.user_history '/users/:id/history', :section => 'history'
end
map.with_options :controller => 'users',
:action => 'show' do |users|
users.user_groups '/users/:id/groups', :section => 'groups'
users.user_history '/users/:id/history', :section => 'history'
end
Labels: block, routes, ruby, with_options
Subscribe to Posts [Atom]