daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Oct 23rd, 2017 356 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top