Restful create URL

I'm creating and api. I create a scaffold

script/generate scaffold user

I have users controller, but how do I call the create method via a URL


new doesn't work as it returns the empty user object in XML as it should, but when I call create localhost:3000/users/create.xml?params I get the below error

"Couldn't find User with ID=create"

I get that is has to do with the routing, but I don't want to call create with and ID as I don't know what it is going to be.

Any help is apperciated.

Cheers, SG

As you now URL its a GET method, but according RESTful rules create it's a POST method. Rails defines seven controller methods for RESTful resources by convention. They are: Action HTTP Method Purpose