On Jul 6, 2015, at 7:29 AM, Sunil Kumar <[email protected]> wrote: > > Then how can i make name as identification work as id. Because name can be > same.
Unless I'm misreading, your request is self-contradictory. If you want to request a specific record, then the URL must identify that record uniquely, period. (Well, you could use a POST, and that would take the unique id out of the URL, but I don't think that's what you want.) Simply put, asking "how can I make sure that /users?name=smith accesses the correct smith without distinguishing in the URL which smith" just doesn't make sense. (I suppose that if the name were unique per logged-in user, you could use something from the session to search for smith per user, but it doesn't seem like that's what you're asking either.) -- Scott Ribe [email protected] http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/ (303) 722-0567 voice -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5801F852-FB05-460C-B264-43933B197DF6%40elevated-dev.com. For more options, visit https://groups.google.com/d/optout.

