public
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/insoshi/insoshi.git
Redirect for invalid connection
Michael Hartl (author)
Thu Apr 17 16:53:03 -0700 2008
commit  b4bda9057eb43b531a6f6fe47f6ae4d61d2da455
tree    1e8bdb6ee8f26a81c4ebc8d2a452e51d95f01a5f
parent  4b9a78ae93cd01c19568be8e06e87d0c73c266e1
...
75
76
77
 
 
 
78
79
80
...
75
76
77
78
79
80
81
82
83
0
@@ -75,6 +75,9 @@ class ConnectionsController < ApplicationController
0
         flash[:error] = "Invalid connection."
0
         redirect_to home_url
0
       end
0
+ rescue ActiveRecord::RecordNotFound
0
+ flash[:error] = "Invalid or expired connection request"
0
+ redirect_to home_url
0
     end
0
 
0
 end

Comments

    No one has commented yet.