search for: valid_violations

Displaying 1 result from an estimated 1 matches for "valid_violations".

2008 Nov 19
0
has_many through select box in form
...''form'', :locals => { :f => f } %> <%= submit_tag ''Update Ticket'' %> <% end %> ... _form.html.erb: ... <%= render :partial => ''violation'', :collection => @ticket.violations, :locals => { :f => f, :valid_violations => Violation.find (:all) } %> ... _violation.html.erb: ... <%= f.collection_select :violations, valid_violations, :id, :name %> ... Should I be referencing the citation instead of the violation? I cannot figure out where this needs to go. Please help. --~--~---------~--~----~--...