code_junkie

Rails friendly url routing with open id

Nov 13th, 2011
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. http://mysite.com/identity/:html_encoded_openid
  2. or
  3. http://mysite.com/identity/:html_encoded_openid.xml
  4.  
  5. my-friendly-openid-com
  6. or
  7. 23-my-friendly-openid-com
  8.  
  9. map.connect 'identity/:id', :controller => "identity",
  10. :action => "foo",
  11. :requirements => {:id => /(w+.?)+/}
Add Comment
Please, Sign In to add comment