On Jul 26, 2:18 pm, Loic Regnault <li...@ruby-forum.com> wrote: > Hi, > I understand the non-sense. I used fields_for and it's works but as you > say, I create a new crc when I want to edit one. > > I put a partial on my users views: > > <% f.fields_for :crcs do |crc| %> > </p> > <%= render :partial => 'crcatt', :locals => { :f => crc } %> > </p> > <% end %> > > and on "_crcatt.html.erb" I got: > <%= f.collection_select( :user_id, @crcs, :id, :name) %> > > how can I edit the choosen crc ? I'am a 'little' bit lost... I only got > 4 month of rails experience and 1 years of OO language. Sorry for > telling you my life ;). > What is the choosen crc ? According to what you posted above, users have multiple crcs.
Fred -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.