diff --git a/hosted/app/assets/javascripts/schedules.js b/hosted/app/assets/javascripts/schedules.js new file mode 100644 index 0000000..dee720f --- /dev/null +++ b/hosted/app/assets/javascripts/schedules.js @@ -0,0 +1,2 @@ +// Place all the behaviors and hooks related to the matching controller here. +// All this logic will automatically be available in application.js. diff --git a/hosted/app/assets/stylesheets/schedules.css b/hosted/app/assets/stylesheets/schedules.css new file mode 100644 index 0000000..afad32d --- /dev/null +++ b/hosted/app/assets/stylesheets/schedules.css @@ -0,0 +1,4 @@ +/* + Place all the styles related to the matching controller here. + They will automatically be included in application.css. +*/ diff --git a/hosted/app/controllers/schedules_controller.rb b/hosted/app/controllers/schedules_controller.rb new file mode 100644 index 0000000..c9c5681 --- /dev/null +++ b/hosted/app/controllers/schedules_controller.rb @@ -0,0 +1,2 @@ +class SchedulesController < ApplicationController +end diff --git a/hosted/app/helpers/schedules_helper.rb b/hosted/app/helpers/schedules_helper.rb new file mode 100644 index 0000000..86e05a4 --- /dev/null +++ b/hosted/app/helpers/schedules_helper.rb @@ -0,0 +1,2 @@ +module SchedulesHelper +end diff --git a/hosted/config/routes.rb b/hosted/config/routes.rb index f9b8b37..f79b056 100644 --- a/hosted/config/routes.rb +++ b/hosted/config/routes.rb @@ -3,6 +3,9 @@ resources :inboxes, only: [:show] resources :inbound_messages, only: [:create, :show] + resources :team_members, param: :public_schedule_slug do + resources :schedules + end root "home#show" end diff --git a/hosted/spec/controllers/schedules_controller_spec.rb b/hosted/spec/controllers/schedules_controller_spec.rb new file mode 100644 index 0000000..153bb8e --- /dev/null +++ b/hosted/spec/controllers/schedules_controller_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe SchedulesController, type: :controller do + +end diff --git a/hosted/spec/helpers/schedules_helper_spec.rb b/hosted/spec/helpers/schedules_helper_spec.rb new file mode 100644 index 0000000..cc37066 --- /dev/null +++ b/hosted/spec/helpers/schedules_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the SchedulesHelper. For example: +# +# describe SchedulesHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe SchedulesHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end