Guest User

Untitled

a guest
Oct 23rd, 2017
398
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. Rails.application.routes.draw do
  2. devise_for :users, :controllers => {sessions: 'sessions', registrations: 'registrations'}
  3. end
  4.  
  5. class RegistrationsController < Devise::RegistrationsController
  6. respond_to :json
  7. end
  8.  
  9. class SessionsController < Devise::SessionsController
  10. respond_to :json
  11. end
  12.  
  13. {
  14. user: {
  15. email: me@gmail.com,
  16. password: password,
  17. password_confirmation: password
  18. }
  19. }
  20.  
  21. Started POST "/users" for 23.233.9.94 at 2016-12-22 08:22:11 +0000
  22. Processing by RegistrationsController#create as */*
  23. Parameters: {"Payload: { rn user: {rn email: me@gmail.com,rn password: password,rn password_confirmation: passwordrn }rn}"=>"[FILTERED]"}
  24. (0.2ms) begin transaction
  25. (0.1ms) rollback transaction
  26. Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.3ms)
  27.  
  28. {
  29. "user": {
  30. "email": "me@gmail.com",
  31. "password": "password",
  32. "password_confirmation": "password"
  33. }
  34. }
Add Comment
Please, Sign In to add comment