i using rails5 nested form , nested form below permitted params params.require(:audit_type).permit(:name, :total_score, :id, risk_scoring_attributes: [:low, :medium, :high, :zero_tolerance, :_destroy, :id], audit_ratings_attributes: [ :id, :from, :to, :description, :_destroy]) view <%= nested_form_for(@audit_type, method: :patch) |f| %> <div class="table-responsive"> <table class="table table-search table-striped table-responsive" id="condensedtable"> <thead> <tr> <th>from</th> <th>to</th> <th>result</th> <th>actions</th> </tr> </thead> <tbody id='audit_rating_data'> <%= f.fields_for :audit_ratings, @audit_type.audit_ratings, :wrapper => false |builder| %>