Just change User#to_params to use id instead of login_slug.
You can actually have best of both worlds by something like this:
def to_param
"#{self.id}-#{login_slug}"
end
So your url would look like this /3-kevin
- Chris
----- Original Message ----
From: Invisible.trust <[email protected]>
To: CommunityEngine <[email protected]>
Sent: Wednesday, January 21, 2009 4:59:59 PM
Subject: [CommunityEngine] Routes with user_id instead Login
It is possible to have url like http://host/user_id/ etc. like
http://host/12345/photos anywhere?
Because I login's in my case may be !uniq and even empty (we log in
users by email)
Thank's!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CommunityEngine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---