After I generate a scaffold, Rails gives me the ability to POST to items.xml
which will create a new item
. A GET to items.xml
will sim
Did you want to know how to use POST only? Do this, for example:
resources :items, :only => [:create]
..etc. This is for Rails 3 by the way, and will generate a single resource to POST create. Or if you only need a really small subset of the REST set, just:
match 'items/:id' => "items#create', :via => :post
etc etc.
The best place to learn about this would be the Routing Guide.