Skip to content

Instantly share code, notes, and snippets.

@mazikwyry
Created June 13, 2017 10:33
Show Gist options
  • Save mazikwyry/b882fff9df1fb58c5e30f8c11eb41d6f to your computer and use it in GitHub Desktop.
Save mazikwyry/b882fff9df1fb58c5e30f8c11eb41d6f to your computer and use it in GitHub Desktop.
class RegistrationsController < Devise::RegistrationsController
respond_to :json
def create
build_resource(sign_up_params)
resource.save
render_resource(resource)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment