Any ideas on this would be grand I have two models Degree and Qualification and am using a join table called assigned, in my edit view below I am calling the partial ''form'' at the start and then currently having to call my lines of code to edit the assigned qualifications in the edit method itself because if I put it in the partial it doesn''t pull through the current values of the grade text field and the subject dropdown, ideally I want to put it into the partial as my new view uses the same code Edit view: <h1>Editing degree</h1> <%= error_messages_for :degree %> <%= start_form_tag :action => ''update'', :id => params[:id] %> <%= render :partial => ''form'' %> <p><label for="assigned_grade">Grade</label><br/> <%=text_field ''assigned'', ''grade'' %></p> <%@quals=Qual.find(:all)%> <p><label for="assigned_qual_id">Subject</label><br/> <%=collection_select(:assigned, :qual_id, @quals,:id, :screen_qual, :prompt => "Select a qualification")%><br /> <%= submit_tag "Edit" %> <%= end_form_tag %> <%= link_to ''Show'', :action => ''show'', :id => @degree %> | <%= link_to ''Back'', :action => ''list'' %> form partial: <%= error_messages_for ''degree'' %> <!--[form:degree]--> <p><label for="degree_title">Title</label><br/> <%= text_field ''degree'', ''title'' %></p> <p><label for="degree_detail">Detail</label><br/> <%= text_area ''degree'', ''detail'' %></p> <p><label for="degree_careers">Careers</label><br/> <%= text_area ''degree'', ''careers'' %></p> <p><label for="degree_contact">Contact</label><br/> <%= text_field ''degree'', ''contact'' %></p> <!--[eoform:degree]--> <!--[form:degree_interest]--> <% for interest in Interest.find(:all) %> <div> <%= check_box_tag "degree[interest_ids][]", interest.id, @degree.interests.include?(interest) %> <%= interest.name %> </div> <% end %> <!--[eoform:degree_interest]--> -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---