Skip to content

Instantly share code, notes, and snippets.

View omarowns's full-sized avatar

Omar Garcia omarowns

  • Cratebind
  • Mexico
View GitHub Profile
@omarowns
omarowns / README.md
Last active February 11, 2019 16:53 — forked from agnoster/README.md
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

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: :created
return
else