diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-02-03 22:36:54 +0000 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-02-03 22:36:54 +0000 |
commit | ead0b3bcc458cec61c8d1d157a17d82e393c5434 (patch) | |
tree | bd0f8b9586a09177a1f29a66241496e385e54f9c /app/controllers/track_controller.rb | |
parent | 8584824006b987fb260636fe65ff525f3b2acf52 (diff) |
Return 404 for /feed/user/no_such_user
Fixes #407.
Diffstat (limited to 'app/controllers/track_controller.rb')
-rw-r--r-- | app/controllers/track_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/track_controller.rb b/app/controllers/track_controller.rb index e39a0489d..d858ab233 100644 --- a/app/controllers/track_controller.rb +++ b/app/controllers/track_controller.rb @@ -66,6 +66,7 @@ class TrackController < ApplicationController # Track a user def track_user @track_user = User.find_by_url_name(params[:url_name]) + raise ActiveRecord::RecordNotFound.new("No such user") if @track_user.nil? @track_thing = TrackThing.create_track_for_user(@track_user) return atom_feed_internal if params[:feed] == 'feed' |