Hi
Thanks for the help, i managed to get this to work with the following 
line

<%= f.select("team_id", Team.all.collect { |p| [p.name, p.id] }, { 
:include_blank => 'None' }) %>

though in my view/users/index
when i call the following <%= user.team %> i am getting this displayed 
#<Team:0x10532a4f0>, i want it to display what team the player has been 
allocated to

in my view/teams/show if i call the following
 <% for player in @team.users %><%= player.first_name %> <%= 
player.last_name %>
 i can see what players are loaded for a particular team

thanks

-- 
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 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.

Reply via email to