Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ActionView::Template::Error (undefined method `fetch_value' for nil:NilClass):
- 21: .line_items
- 22: =f.simple_fields_for :line_items do |line_item|
- 23: =render 'line_item_fields', :f => line_item
- 24: //error line// =link_to_add_association "add line", f, :line_items
- //Rfq controller
- def rfq_params
- params.require(:rfq).permit(
- :quote_number,:rep_id, :owner, :customer_id, :customer_name, :end_user_list, :application_list, :due, :ship_date, :is_budgetary, :notes, :mandatory_due_date,
- valves_attributes: [:id, :_destroy, :productline, :discwedge, :valvetype, :valveends, :valvematerial, :valveconfig, :valvenotes,
- line_items_attributes: [
- :tag, :qty, :size, :class, :operator, :trim, :_destroy
- ]
- ])
- end
- //form partial:
- .valves
- =f.fields_for :valves do |valve|
- =render 'valve_fields', :f => valve
- =link_to_add_association 'add valve', f, :valves, "data-association-insertion-traversal" => "next"
- //valve partial
- .line_items
- =f.simple_fields_for :line_items do |line_item|
- =render 'line_item_fields', :f => line_item
- =link_to_add_association "add line", f, :line_items
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement