| 19 | | map.named_route(collection, collection_path, :action => "index", :require => { :method => :get }) |
|---|
| 20 | | map.named_route("create_#{entity}", collection_path, :action => "create", :require => { :method => :post }) |
|---|
| 21 | | map.named_route("new_#{entity}", "#{collection_path}/builder", :action => "new") |
|---|
| | 19 | map.named_route(collection, collection_path, :action => "index", :require => { :method => :get }) |
|---|
| | 20 | map.connect(collection_path, :action => "create", :require => { :method => :post }) |
|---|
| 23 | | map.named_route(entity, entity_path, :action => "show", :require => { :method => :get }) |
|---|
| 24 | | map.named_route("delete_#{entity}", entity_path, :action => "delete", :require => { :method => :delete }) |
|---|
| 25 | | map.named_route("update_#{entity}", entity_path, :action => "update", :require => { :method => :put }) |
|---|
| 26 | | map.named_route("edit_#{entity}", "#{entity_path}/editor", :action => "edit") |
|---|
| | 22 | map.named_route(entity, entity_path, :action => "show", :require => { :method => :get }) |
|---|
| | 23 | map.connect(entity_path, :action => "delete", :require => { :method => :delete }) |
|---|
| | 24 | map.connect(entity_path, :action => "update", :require => { :method => :put }) |
|---|
| | 25 | |
|---|
| | 26 | map.named_route("new_#{entity}", "#{collection_path}/builder", :action => "new") |
|---|
| | 27 | map.named_route("edit_#{entity}", "#{entity_path}/editor", :action => "edit") |
|---|