Update method for controller not updating my DB(Rails)
<p>In my project controller I have a update method for some reason my update method will not update my database. Any help would be greatly appreciated. </p>

<p>Here is my project controller. </p>

<pre><code>def edit_production
  @project = Project.find(params[:id])
end

def edit_dfm
  @project = Project.find(params[:id])
end

def edit_prototype
  @project = Project.find(params[:id])
end

def edit_tooling
  @project = Project.find(params[:id])
end

def edit_quality
  @project = Project.find(params[:id])
end


def update
  @project = Project.find(params[:id])


  respond_to do |format|
    if @project.update_attributes(params[:p_params])
      format.html { redirect_to project_index_path, :notice =&gt; 'Project successfully updated.' }
      format.xml  { head :ok }
    end
  end
end

private

def p_params
  params.require(:project).permit(:project_id, :planner, :part_num, :status, :customer, status_attributes: [:a_d, :status, :note, :process]
end
</code></pre>

<p>Here is my view for the edit_production action I want to use the update action for this to update my database. </p>

<pre><code>%table.table.table-bordered.trace-table
  %thead
    %tr.trace-table
      %th.ts.jp{:style =&gt; 'border: solid black; font-size:17px;'} New Project

= simple_form_for @project, :method =&gt; :patch do |f|
  = f.text_field :planner, :style =&gt; 'display:none', :input_html =&gt; {:value =&gt; current_user.name}
  %table.table.table-bordered.table-striped{:style =&gt; 'table-layout:fixed; width:100% !important;'}
    %th.lt.feed Project ID:
    %th.lt.feed= f.text_field :project_id, :id =&gt; "project_id"

  %table.table.table-bordered.table-striped{:style =&gt; 'table-layout:fixed; width:100% !important;'}
    %th.lt.feed Customer:
    %th.lt.feed= f.text_field :customer, :id =&gt; "cust_select"



    = f.simple_fields_for :status do |builder|
      = render "status", :f =&gt; builder
  %table.table.table-bordered.table-striped{:style =&gt; 'table-layout:fixed; width:100% !important;'}

   %th.lt.feed= f.submit "Submit"
</code></pre>

<p>Here are my routes </p>

<pre><code>                        Prefix Verb     URI Pattern                            Controller#Action
                       signout GET|POST /signout(.:format)                     sessions#destroy
                        adauth GET|POST /adauth(.:format)                      sessions#create
                      sessions GET      /sessions(.:format)                    sessions#index
                               POST     /sessions(.:format)                    sessions#create
                   new_session GET      /sessions/new(.:format)                sessions#new
                  edit_session GET      /sessions/:id/edit(.:format)           sessions#edit
                       session GET      /sessions/:id(.:format)                sessions#show
                               PATCH    /sessions/:id(.:format)                sessions#update
                               PUT      /sessions/:id(.:format)                sessions#update
                               DELETE   /sessions/:id(.:format)                sessions#destroy
    pop_part_num_project_index GET      /project/pop_part_num(.:format)        project#pop_part_num
pop_customer_org_project_index GET      /project/pop_customer_org(.:format)     project#pop_customer_org
                 project_index GET      /project(.:format)                     project#index
                               POST     /project(.:format)                     project#create
                   new_project GET      /project/new(.:format)                 project#new
                  edit_project GET      /project/:id/edit(.:format)            project#edit
                       project GET      /project/:id(.:format)                 project#show
                               PATCH    /project/:id(.:format)                 project#update
                               PUT      /project/:id(.:format)                 project#update
                              DELETE   /project/:id(.:format)                 project#destroy
               production_edit GET|POST /project/:id/edit_production(.:format) project#edit_production
                      dfm_edit GET|POST /project/:id/edit_dfm(.:format)        project#edit_dfm
                prototype_edit GET|POST /project/:id/edit_prototype(.:format)  project#edit_prototype
                  tooling_edit GET|POST /entry/:id/edit_tooling(.:format)      project#edit_tooling
                 quality_edit GET|POST /entry/:id/edit_quality(.:format)      project#edit_quality
                          root GET      /                                      main#index
</code></pre>