Skip to content

Instantly share code, notes, and snippets.

@stevenabrooks
Created January 8, 2014 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevenabrooks/8318609 to your computer and use it in GitHub Desktop.
Save stevenabrooks/8318609 to your computer and use it in GitHub Desktop.
Angular JS User Controller
class UsersController < ApplicationController
respond_to :json
def index
respond_with User.all
end
def create
respond_with User.create(params[:user])
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment