Hello, Currently I am working on a app, so far I have User (with devise) which are able to create projects. So, if user1 creates project A and project B I want him, to be able to assign user2 with role admin on project A, and user2 with moderator role on project B. I was thinking in creating a UserRoleProject link table, is it a good idea? Or if not please help me with some pointers. The action will be something like, User1 select from a list user2, select a project from another list(that user1 created), and select the role that the user2 will have on that project. Any user will be able to perform the same action on their projects. Thank you -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a7e3c9190e1a35c34a37ad3c9164ca82%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
On 25 July 2013 09:56, Alex Alex <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hello, Currently I am working on a app, so far I have User (with devise) > which are able to create projects. So, if user1 creates project A and > project B I want him, to be able to assign user2 with role admin on > project A, and user2 with moderator role on project B. I was thinking in > creating a UserRoleProject link table, is it a good idea? Or if not > please help me with some pointers.There is no need to ask the same question twice. I have already responded to your original question. Colin> > The action will be something like, User1 select from a list user2, > select a project from another list(that user1 created), and select the > role that the user2 will have on that project. > > Any user will be able to perform the same action on their projects. > > Thank you > > -- > Posted via http://www.ruby-forum.com/. > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a7e3c9190e1a35c34a37ad3c9164ca82%40ruby-forum.com. > For more options, visit https://groups.google.com/groups/opt_out. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLs3zx6utG4enxsb_pd4n3qCnf_E6KwjA1tqTAt-_sB7AQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Oh, sorry I did not realised that those forums are the same. Colin Law wrote in post #1116638:> On 25 July 2013 09:56, Alex Alex <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> Hello, Currently I am working on a app, so far I have User (with devise) >> which are able to create projects. So, if user1 creates project A and >> project B I want him, to be able to assign user2 with role admin on >> project A, and user2 with moderator role on project B. I was thinking in >> creating a UserRoleProject link table, is it a good idea? Or if not >> please help me with some pointers. > > There is no need to ask the same question twice. I have already > responded to your original question. > > Colin-- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3a41d67da321c92571815d8382b0bd77%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
On 25 July 2013 10:16, Alex Alex <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Oh, sorry I did not realised that those forums are the same.OK, ruby-forum is just a forum like interface to the mailing list. Colin> > Colin Law wrote in post #1116638: >> On 25 July 2013 09:56, Alex Alex <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >>> Hello, Currently I am working on a app, so far I have User (with devise) >>> which are able to create projects. So, if user1 creates project A and >>> project B I want him, to be able to assign user2 with role admin on >>> project A, and user2 with moderator role on project B. I was thinking in >>> creating a UserRoleProject link table, is it a good idea? Or if not >>> please help me with some pointers. >> >> There is no need to ask the same question twice. I have already >> responded to your original question. >> >> Colin > > -- > Posted via http://www.ruby-forum.com/. > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3a41d67da321c92571815d8382b0bd77%40ruby-forum.com. > For more options, visit https://groups.google.com/groups/opt_out. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLu9GGDW_uOBanKRafHOObAmVs%3D4infK%3D0EMua5_M_s%2BoQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.