Created
December 16, 2015 23:06
-
-
Save smathy/43f22133c18738b1e3f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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