Skip to content

Commit 64f8cc6

Browse files
Work toward out-bound link tracker for ab testing
1 parent 6c3ab93 commit 64f8cc6

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

app/controllers/record_controller.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ class RecordController < ApplicationController
33

44
include RecordHelper
55

6+
def out
7+
url = params[:url]
8+
end
9+
610
def view
711
id = params[:id]
812
index = ENV.fetch('TIMDEX_INDEX', nil)

app/views/record/out.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>This would redirect you.</p>

config/routes.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
get 'lookup', to: 'libkey#lookup'
77

8+
get 'out/(:url)', to: 'record#out'
9+
810
get 'record/(:id)',
911
to: 'record#view',
1012
as: 'record',

0 commit comments

Comments
 (0)