ソースを参照

Destroy StaticPages, won't be used.

Instead, the only public-facing pages will be the signin and password
recovery forms.
Maarten van den Berg 8 年 前
コミット
132d27e199

+ 0 - 3
app/assets/javascripts/static_pages.coffee

@@ -1,3 +0,0 @@
1
-# Place all the behaviors and hooks related to the matching controller here.
2
-# All this logic will automatically be available in application.js.
3
-# You can use CoffeeScript in this file: http://coffeescript.org/

+ 0 - 3
app/assets/stylesheets/static_pages.scss

@@ -1,3 +0,0 @@
1
-// Place all the styles related to the StaticPages controller here.
2
-// They will automatically be included in application.css.
3
-// You can use Sass (SCSS) here: http://sass-lang.com/

+ 0 - 10
app/controllers/static_pages_controller.rb

@@ -1,10 +0,0 @@
1
-class StaticPagesController < ApplicationController
2
-  def home
3
-  end
4
-
5
-  def sign_in
6
-  end
7
-
8
-  def sign_up
9
-  end
10
-end

+ 0 - 2
app/helpers/static_pages_helper.rb

@@ -1,2 +0,0 @@
1
-module StaticPagesHelper
2
-end

+ 0 - 2
app/views/static_pages/home.html.erb

@@ -1,2 +0,0 @@
1
-<h1>StaticPages#home</h1>
2
-<p>Find me in app/views/static_pages/home.html.erb</p>

+ 0 - 2
app/views/static_pages/sign_in.html.erb

@@ -1,2 +0,0 @@
1
-<h1>StaticPages#sign_in</h1>
2
-<p>Find me in app/views/static_pages/sign_in.html.erb</p>

+ 0 - 2
app/views/static_pages/sign_up.html.erb

@@ -1,2 +0,0 @@
1
-<h1>StaticPages#sign_up</h1>
2
-<p>Find me in app/views/static_pages/sign_up.html.erb</p>

+ 0 - 19
test/controllers/static_pages_controller_test.rb

@@ -1,19 +0,0 @@
1
-require 'test_helper'
2
-
3
-class StaticPagesControllerTest < ActionDispatch::IntegrationTest
4
-  test "should get home" do
5
-    get static_pages_home_url
6
-    assert_response :success
7
-  end
8
-
9
-  test "should get sign_in" do
10
-    get static_pages_sign_in_url
11
-    assert_response :success
12
-  end
13
-
14
-  test "should get sign_up" do
15
-    get static_pages_sign_up_url
16
-    assert_response :success
17
-  end
18
-
19
-end