On 5 March 2012 23:29, Felipe Pieretti Umpierre <[email protected]> wrote:
Please don't top post, it makes it difficult to follow the thread. Insert your comments at appropriate points in previous message. Thanks Also by completely removing the previous message here you have lost all context so nobody finding this in the future will know what the post is about. > Hello Colin, thank you for Ur attention. > > I have a model Project, in my projects I can create items, in this > project I can Select various user, that will be available in my items to > distribute that users that I select to make part of my project. > > But when I try to make a select of all users that are in this project, I > can't because I don't know very well rails yet, and don't know if have > something already done or I will have to improvise. Previously you showed a select that used Project.all to get the projects to display. Now you say you have a particular project (let us assume, since though I asked you did not answer the question) that it is in @project. Then all you have to do is use a select similar to the one you already had, but use @project.users instead of Project.all. Obviously you have to change the contents of the collect block also as it will be receive users instead of projects. How are you getting on with working through railstutorial.org? You should be well on the the way through it by now. If you had completed it you would not have needed to ask this question. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

