我想让任何人在我的网站上创建用户,所以我累了创建一个虚拟用户脚手架并使用curl -d "user=dummy" http://localhost:3000/users
,但这不起作用。如何完成这项任务。
答案 0 :(得分:0)
您需要提供有关UsersController #create如何工作的一些详细信息。
假设您使用基本脚手架并且用户表具有username
属性,则表示您传递了无效参数
curl -d "user[username]=dummy" http://localhost:3000/users