forked from External/greenlight
Added controller/view for landing page
This commit is contained in:
parent
a15bf5b3a9
commit
c318d7c5d8
3
app/assets/javascripts/landing.coffee
Normal file
3
app/assets/javascripts/landing.coffee
Normal file
@ -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/
|
3
app/assets/stylesheets/landing.scss
Normal file
3
app/assets/stylesheets/landing.scss
Normal file
@ -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/
|
4
app/controllers/landing_controller.rb
Normal file
4
app/controllers/landing_controller.rb
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
class LandingController < ApplicationController
|
||||||
|
def index
|
||||||
|
end
|
||||||
|
end
|
2
app/helpers/landing_helper.rb
Normal file
2
app/helpers/landing_helper.rb
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
module LandingHelper
|
||||||
|
end
|
2
app/views/landing/index.html.erb
Normal file
2
app/views/landing/index.html.erb
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<h1>Landing#index</h1>
|
||||||
|
<p>Find me in app/views/landing/index.html.erb</p>
|
@ -1,3 +1,6 @@
|
|||||||
Rails.application.routes.draw do
|
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
|
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
|
||||||
end
|
end
|
||||||
|
9
test/controllers/landing_controller_test.rb
Normal file
9
test/controllers/landing_controller_test.rb
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user