@AntonKhorev commented on this pull request.
> + def update
@user.roles.create(:role => @role, :granter => current_user)
The routing system requires some convincing to achieve that. The less ugly
version I could come up with is singular resources for roles, despite there are
multiple possible roles for each user:
resource :role, :controller => "user_roles", :path => "roles/:role", :only
=> [:create, :destroy]
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5293#discussion_r1831270674
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/5293/review/2418704...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev