Skip to content

Instantly share code, notes, and snippets.

@smathy
Created December 16, 2015 23:06
Show Gist options
  • Save smathy/43f22133c18738b1e3f0 to your computer and use it in GitHub Desktop.
Save smathy/43f22133c18738b1e3f0 to your computer and use it in GitHub Desktop.
class SchoolsController < ApplicationController
respond_to :html
def add_user
run School::AddUser
redirect_to school_path current_school
end
def index
present School::Index
end
def show
present School::Show
end
def new
form School::Create
end
def edit
form School::Update
end
def create
respond School::Create
end
def update
respond School::Update
end
def destroy
respond School::Destroy
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment