Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Khalid Ali
schedules
Commits
d76e3910
Commit
d76e3910
authored
Apr 30, 2018
by
Zac Wood
Browse files
Added CalendarGeneratorController files
parent
bec5a4f5
Changes
8
Hide whitespace changes
Inline
Side-by-side
schedules_api/Gemfile
View file @
d76e3910
...
...
@@ -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'
schedules_api/app/assets/javascripts/calendar_generator.js
0 → 100644
View file @
d76e3910
// Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.
schedules_api/app/assets/stylesheets/calendar_generator.scss
0 → 100644
View file @
d76e3910
// Place all the styles related to the CalendarGenerator controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
schedules_api/app/controllers/calendar_generator_controller.rb
0 → 100644
View file @
d76e3910
class
CalendarGeneratorController
<
ApplicationController
def
generate
;
end
end
schedules_api/app/helpers/calendar_generator_helper.rb
0 → 100644
View file @
d76e3910
module
CalendarGeneratorHelper
end
schedules_api/app/views/calendar_generator/generate.html.erb
0 → 100644
View file @
d76e3910
<h1>
CalendarGenerator#generate
</h1>
<p>
Find me in app/views/calendar_generator/generate.html.erb
</p>
schedules_api/config/routes.rb
View file @
d76e3910
...
...
@@ -6,6 +6,7 @@ Rails.application.routes.draw do
end
get
'search'
,
controller:
'search'
,
action:
'index'
get
'generate'
,
controller:
'calendar_generator'
,
action:
'generate'
end
root
'courses#index'
# Set the root to be the courses API endpoint
...
...
schedules_api/test/controllers/calendar_generator_controller_test.rb
0 → 100644
View file @
d76e3910
require
'test_helper'
class
CalendarGeneratorControllerTest
<
ActionDispatch
::
IntegrationTest
test
"should get generate"
do
get
calendar_generator_generate_url
assert_response
:success
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment