Ruby on Rails Thursday, July 6, 2017

could try using something like the friendly_id gem.

https://github.com/norman/friendly_id

On Tuesday, July 4, 2017 at 7:02:22 PM UTC-5, fugee ohu wrote:


On Tuesday, July 4, 2017 at 6:13:35 PM UTC-4, nynhex wrote:
How do you expect Rails to work?  If your route is /users/:id/posts/:id the ID of the object must be passed as a param. 

On Jul 4, 2017, at 5:11 PM, fugee ohu <fuge...@gmail.com> wrote:

Seems undesirable for everyone to know your user id from a nested resources url that looks like /users/5/posts/4 Anyone can advise?

--
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-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ef5cf7ec-3967-46e6-a1d3-8cb9e5052c0c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Seems a reason not to use nested resources and also not being able to pass objects with redirects so using nested resources i'm getting caught up fooling around with flash to render the errors

--
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/5dcc4b07-5bd4-4c91-895f-37dadb3bf356%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment