Skip to content

Instantly share code, notes, and snippets.

@qichunren
Created December 19, 2011 07:38
Show Gist options
  • Save qichunren/1495924 to your computer and use it in GitHub Desktop.
Save qichunren/1495924 to your computer and use it in GitHub Desktop.
user register to ruby-china with post josn data
curl -d "user[login]=hello_guest&user[password]=justpasserror&user[password_confirmation]=justpasserror&user[email][email protected]" http://localhost:3001/account.json
{"_id":3,"created_at":"2011-12-19T15:36:48+08:00","current_sign_in_at":"2011-12-19T15:36:48+08:00","current_sign_in_ip":"127.0.0.1","email":"[email protected]","encrypted_password":"$2a$10$obXkqpBi7jkgZ7f3/wNEaOWHY55vs6a6RVdHOLJEus8/nxg2ZO8a6","follower_ids":[],"following_ids":[],"following_node_ids":[],"guest":false,"last_sign_in_at":"2011-12-19T15:36:48+08:00","last_sign_in_ip":"127.0.0.1","likes_count":0,"login":"hello_guest","replies_count":0,"sign_in_count":1,"state":1,"topics_count":0,"updated_at":"2011-12-19T15:36:48+08:00","verified":true}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment