Skip to content

Commit de31149

Browse files
committed
Added terms of use page for FB Login API requirements
1 parent 1b4b1b4 commit de31149

File tree

6 files changed

+24
-2
lines changed

6 files changed

+24
-2
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class TermsOfUseController < ApplicationController
2+
def index
3+
@message = "Welcome to my Blog"
4+
@articles = Article.all
5+
respond_to do |format|
6+
format.html
7+
end
8+
end
9+
end

app/helpers/terms_of_use_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module TermsOfUseHelper
2+
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
.wrapper
2-
p This is a sample policy privacy page
2+
%p This is a sample policy privacy page
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.wrapper
2+
%p This is a sample terms of use page

config/routes.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
get 'article/delete'
2323
get 'welcome/index'
2424

25-
get 'privacy-policy' => 'privacy_policy#index', :as => 'privacy_policy'
25+
get '/privacy-policy' => 'privacy_policy#index', :as => 'privacy_policy'
26+
get '/terms-of-use' => 'terms_of_use#index', :as => 'terms_of_use'
27+
2628

2729
root 'welcome#index'
2830

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require "test_helper"
2+
3+
class TermsOfUseControllerTest < ActionDispatch::IntegrationTest
4+
# test "the truth" do
5+
# assert true
6+
# end
7+
end

0 commit comments

Comments
 (0)