Ruby on Rails Wednesday, December 30, 2015

Should i use the same controller as the world for allowing users to edit, update their profiles that I use to let the world view the profiles? i have associated models and i have 2 routes going to the same controller action I'm not sure what I should do How would most websites do this?
GET    /users/:user_id/profile(.:format)               profiles#show
GET    /profiles/:id(.:format)                              profiles#show

--
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/5d03c4e8-bd63-4c59-86b3-bd95cf0ffcda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment