Skip to content

Commit 60b6e78

Browse files
Work toward out-bound link tracker for ab testing
1 parent 95662c5 commit 60b6e78

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
get 'analyze', to: 'tacos#analyze'
55

6+
get 'out/(:url)', to: 'record#out'
67
get 'record/(:id)',
78
to: 'record#view',
89
as: 'record',

0 commit comments

Comments
 (0)