Skip to content

Instantly share code, notes, and snippets.

View Bomadeno's full-sized avatar

Matt Bomadeno

View GitHub Profile
class Api::RegistrationsController < Api::BaseController
respond_to :json
def create
user = User.new(params[:user])
if user.save
render :json=> user.as_json(:auth_token=>user.authentication_token, :email=>user.email), :status=>201
return
else