diff --git a/app/assets/javascripts/landing.coffee b/app/assets/javascripts/landing.coffee new file mode 100644 index 00000000..24f83d18 --- /dev/null +++ b/app/assets/javascripts/landing.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/stylesheets/landing.scss b/app/assets/stylesheets/landing.scss new file mode 100644 index 00000000..f33d6f8d --- /dev/null +++ b/app/assets/stylesheets/landing.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the landing controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/controllers/landing_controller.rb b/app/controllers/landing_controller.rb new file mode 100644 index 00000000..a5c04b4f --- /dev/null +++ b/app/controllers/landing_controller.rb @@ -0,0 +1,4 @@ +class LandingController < ApplicationController + def index + end +end diff --git a/app/helpers/landing_helper.rb b/app/helpers/landing_helper.rb new file mode 100644 index 00000000..6aa3ee92 --- /dev/null +++ b/app/helpers/landing_helper.rb @@ -0,0 +1,2 @@ +module LandingHelper +end diff --git a/app/views/landing/index.html.erb b/app/views/landing/index.html.erb new file mode 100644 index 00000000..ea27d33b --- /dev/null +++ b/app/views/landing/index.html.erb @@ -0,0 +1,2 @@ +

Landing#index

+

Find me in app/views/landing/index.html.erb

diff --git a/config/routes.rb b/config/routes.rb index 787824f8..57c3044e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,3 +1,6 @@ Rails.application.routes.draw do + get 'meeting(/:id)', to: 'landing#index' + + root to: 'landing#index' # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html end diff --git a/test/controllers/landing_controller_test.rb b/test/controllers/landing_controller_test.rb new file mode 100644 index 00000000..ee1801da --- /dev/null +++ b/test/controllers/landing_controller_test.rb @@ -0,0 +1,9 @@ +require 'test_helper' + +class LandingControllerTest < ActionDispatch::IntegrationTest + test "should get index" do + get landing_index_url + assert_response :success + end + +end