Ruby on Rails Monday, July 6, 2015

Hello,
How can i hide the params in browser url. I read many blogs and suggestions.

They suggested me to use to_params friendlyid gem.

Example.

I have a user table and have multiple records with the same name.

If i fire get request using localhost:3000/users?name=abc

Then how can i make name as identification work as id. Because name can be same.


Thanks
Sunil

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2ead5ffd-c403-4159-ba72-ee972b5f8922%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment