# HG changeset patch # User nanaya # Date 1448901405 -32400 # Node ID 5dd24a65547bd3cd785df7c691b129476d27e78e # Parent 1161ad2a4390ecbc4951df2059c8231b39a505a4 Should be screen name (@-name), not just name. diff -r 1161ad2a4390 -r 5dd24a65547b app/controllers/tweets_controller.rb --- a/app/controllers/tweets_controller.rb Tue Dec 01 01:34:12 2015 +0900 +++ b/app/controllers/tweets_controller.rb Tue Dec 01 01:36:45 2015 +0900 @@ -28,7 +28,7 @@ def try_redirect user = Tweet.new(params[:id]).user - redirect_to tweet_path("#{user.id}/#{user.name}") + redirect_to tweet_path("#{user.id}/#{user.screen_name}") rescue Twitter::Error::NotFound head :not_found end