Commit d76e3910 authored by Zac Wood's avatar Zac Wood
Browse files

Added CalendarGeneratorController files

parent bec5a4f5
......@@ -52,4 +52,4 @@ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
gem 'rubyXL'
gem 'icalendar'
\ No newline at end of file
gem 'icalendar'
// 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 CalendarGenerator controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here:
class CalendarGeneratorController < ApplicationController
def generate; end
<p>Find me in app/views/calendar_generator/generate.html.erb</p>
......@@ -6,6 +6,7 @@ Rails.application.routes.draw do
get 'search', controller: 'search', action: 'index'
get 'generate', controller: 'calendar_generator', action: 'generate'
root 'courses#index' # Set the root to be the courses API endpoint
require 'test_helper'
class CalendarGeneratorControllerTest < ActionDispatch::IntegrationTest
test "should get generate" do
get calendar_generator_generate_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