Modified: trunk/app/controllers/application_controller.rb (3491 => 3492)
--- trunk/app/controllers/application_controller.rb 2013-04-03 15:44:21 UTC (rev 3491)
+++ trunk/app/controllers/application_controller.rb 2013-04-08 07:40:24 UTC (rev 3492)
@@ -535,10 +535,10 @@
def check_context
if params[:user_id]
@context = User.find_by_id(params[:user_id])
- error("User not found") if @context.nil?
+ render_404("User not found.") if @context.nil?
elsif params[:network_id]
@context = Network.find_by_id(params[:network_id])
- error("Group not found") if @context.nil?
+ render_404("Group not found.") if @context.nil?
end
end