diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-12-23 17:40:18 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-04-27 16:50:32 +0100 |
commit | 28428468c52037ea4ee40a31f37edce7a334973c (patch) | |
tree | 3158d36d3515cf2376834dd0f8b677d3f3ca4d7b /app/controllers/track_controller.rb | |
parent | 5b99495ef39feda47da098f896a801beafc892c5 (diff) |
Use resource-based RESTful routing and separate controller
Diffstat (limited to 'app/controllers/track_controller.rb')
-rw-r--r-- | app/controllers/track_controller.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/app/controllers/track_controller.rb b/app/controllers/track_controller.rb index afe10be91..8b8055b55 100644 --- a/app/controllers/track_controller.rb +++ b/app/controllers/track_controller.rb @@ -214,14 +214,4 @@ class TrackController < ApplicationController redirect_to URI.parse(params[:r]).path end - # Track interest in a request from a non-logged in user - def widget_vote - @info_request = InfoRequest.find(params[:info_request_id]) - if not @user and cookies[:widget_vote] - wv = @info_request.widget_votes.where(:cookie => cookies[:widget_vote]).first_or_create - end - - track_thing = TrackThing.create_track_for_request(@info_request) - redirect_to do_track_path(track_thing), status => :temporary_redirect - end end |