Skip to content

Commit 1b4b1b4

Browse files
committed
Added privacy-policy page for FB Login API requirements
1 parent a9587be commit 1b4b1b4

File tree

5 files changed

+22
-0
lines changed

5 files changed

+22
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class PrivacyPolicyController < 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
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module PrivacyPolicyHelper
2+
end
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 policy privacy page

config/routes.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
get 'article/delete'
2323
get 'welcome/index'
2424

25+
get 'privacy-policy' => 'privacy_policy#index', :as => 'privacy_policy'
26+
2527
root 'welcome#index'
2628

2729
# The priority is based upon order of creation: first created -> highest priority.
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 PrivacyPolicyControllerTest < ActionDispatch::IntegrationTest
4+
# test "the truth" do
5+
# assert true
6+
# end
7+
end

0 commit comments

Comments
 (0)