Commit 64d7d103 authored by Zac Wood's avatar Zac Wood
Browse files

added initial instructor controller

parent ea5409e8
// Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.
// Place all the styles related to the instructors controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here:
class InstructorsController < ApplicationController
def index
def show
<p>Find me in app/views/instructors/index.html.erb</p>
<p>Find me in app/views/instructors/show.html.erb</p>
......@@ -6,6 +6,7 @@ Rails.application.routes.draw do
scope :api do # Register /api routes
resources :courses, only: [:index, :show]
resources :course_sections, only: [:index]
resources :instructors, only: [:index, :show]
resources :schedules, only: [:index]
require 'test_helper'
class InstructorsControllerTest < ActionDispatch::IntegrationTest
test "should get index" do
get instructors_index_url
assert_response :success
test "should get show" do
get instructors_show_url
assert_response :success
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment