aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/track_controller.rb
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-08-20 15:25:00 +0100
committerRobin Houston <robin.houston@gmail.com>2012-08-20 15:25:00 +0100
commitf2115fe4357d232d0e8a373881790a9a38ee80f5 (patch)
tree7a3f03a56f906cca7b5d491ce2c017caa329a2f1 /app/controllers/track_controller.rb
parentc0c986ea983c55beff44f835adfcdead8b42ec18 (diff)
Fail with NotFound if request slug doesn't exist
Closes #554.
Diffstat (limited to 'app/controllers/track_controller.rb')
-rw-r--r--app/controllers/track_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/track_controller.rb b/app/controllers/track_controller.rb
index 07e807451..1a21491b1 100644
--- a/app/controllers/track_controller.rb
+++ b/app/controllers/track_controller.rb
@@ -15,7 +15,7 @@ class TrackController < ApplicationController
# Track all updates to a particular request
def track_request
- @info_request = InfoRequest.find_by_url_title(params[:url_title])
+ @info_request = InfoRequest.find_by_url_title!(params[:url_title])
@track_thing = TrackThing.create_track_for_request(@info_request)
return atom_feed_internal if params[:feed] == 'feed'