Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions hosted/app/assets/javascripts/schedules.js
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 4 additions & 0 deletions hosted/app/assets/stylesheets/schedules.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/*
Place all the styles related to the matching controller here.
They will automatically be included in application.css.
*/
2 changes: 2 additions & 0 deletions hosted/app/controllers/schedules_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class SchedulesController < ApplicationController
end
2 changes: 2 additions & 0 deletions hosted/app/helpers/schedules_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
module SchedulesHelper
end
3 changes: 3 additions & 0 deletions hosted/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

resources :inboxes, only: [:show]
resources :inbound_messages, only: [:create, :show]
resources :team_members, param: :public_schedule_slug do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am a bit confused by this name, is it the public_schedule_slug or is it the team_member_slug

I.e. is this going to be used to look up the team member or the schedule?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be that a nested resource is unnecessary here, as we may want to have a schedule that has many team members

resources :schedules
end

root "home#show"
end
5 changes: 5 additions & 0 deletions hosted/spec/controllers/schedules_controller_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require 'rails_helper'

RSpec.describe SchedulesController, type: :controller do

end
15 changes: 15 additions & 0 deletions hosted/spec/helpers/schedules_helper_spec.rb
Original file line number Diff line number Diff line change
@@ -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