class StaffController < ApplicationController
respond_to :json
def index
respond_with Staff.all
end
def show
respond_with Staff.find(params[:id])
end
def create
respond_with Staff.create(params[:staff])
end
def update
respond_with Staff.update(params[:id], params[:staff])
end
def destroy
respond_with Staff.destroy(params[:id])
end
end