views:

16

answers:

1

I want to let anybody to create user into my site, so I tired create some dummy user scaffold and use curl -d "user=dummy" http://localhost:3000/users ,but this not work. How to accomplish this kind of task.

A: 

You need to provide some details about how your UsersController#create works. Assuming you use the basic scaffold and the user table has a username attribute, you are passing invalid parameters

curl -d "user[username]=dummy" http://localhost:3000/users
Simone Carletti
Even with a valid parameters it still not work.
art