Make post not found redirect clearer

This commit is contained in:
Raphael Sofaer 2011-03-21 07:47:25 -07:00
parent 4517c7c1b1
commit a45103d0ef
2 changed files with 3 additions and 0 deletions

View file

@ -102,6 +102,8 @@ class StatusMessagesController < ApplicationController
respond_with @status_message
else
Rails.logger.info(:event => :link_to_nonexistent_post, :ref => request.env['HTTP_REFERER'], :user_id => current_user.id, :post_id => params[:id])
flash[:error] = I18n.t('status_messages.show.not_found')
redirect_to :back
end
end

View file

@ -560,6 +560,7 @@ en:
show:
destroy: "Delete"
permalink: "permalink"
not_found: "Sorry, we couldn't find that post."
helper:
no_message_to_display: "No message to display."
destroy: