Discussion Forums
- Topic List
- Most Recent Posts
- Sign In for more options
Hi, In my app intially am signup with email only once create record user will get mail with link .once click on the link from mail it will take signup page to complete registration.Link is like http://localhost:3000/users/1/myaccount. But here i want to hide id "1".Instead of "1" i want to show some numbers like "183323232" this urls should be uniquly trackable . Can anybody help me please
You can create a unique/random string (e.g. 40 bytes) and place that in the link. When the link is clicked, lookup the user via the string. Don't follow the normal routing model. Of course, you'll have to store that string in the model.
You may take a look at the following example: http://github.com/AgileMantis/1of31. Look at my User registration and activation code base.
Hope this helps!
Brian
Tá»§ bếp Thùy Anh chuyên tư vấn thiết kế, cung cấp và phân phối các loại tá»§ bếp, phụ kiện tá»§ bếp, thiết bị nhà bếp chất lượng cao. Tá»§ bếp cao cấp Má»i thắc mắc xin liên hệ để được tư vấn miá»…n phÃ: http://www.tubepthuyanh.com.vn/ Trân trá»ng cảm Æ¡n quý khách hà ng
Công ty TNHH và ng bạc đá quà Minh Ngá»c – chuyên: Nhan cuoi, vang bac, trang suc cuoi dep, nhan cuoi cao cap, nhan cuoi dep, nhan cuoi minh ngoc, nhan dinh hon Website: http://vangminhngoc.com/ Bạn hãy liên hệ để được tư vấn Nhan cuoi miá»…n phà nhé!
