title: The action 'update' could not be found for JobsController + missing params
body: <p>I have been working on my startup for a week, after implementing the braintree (sandbox) I can not load <code>params</code> from the form <a href="http://0.0.0.0:3000/jobs/new" rel="nofollow noreferrer">http://0.0.0.0:3000/jobs/new</a>. In the show and index action nothing is simply displayed. When I try to edit the offer <a href="http://0.0.0.0:3000/jobs/4/edit" rel="nofollow noreferrer">http://0.0.0.0:3000/jobs/4/edit</a> I get the <strong>error</strong> </p>
  
  <pre><code>"The action 'update' could not be found for JobsController". 
  </code></pre>
  
  <p>In the index (<a href="http://0.0.0.0:3000/jobs/" rel="nofollow noreferrer">http://0.0.0.0:3000/jobs/</a>) in the place title and description is the address from routes. Also missing is an avatar from <code>AvatarUploader</code> which was previously.
  <a href="https://i.stack.imgur.com/fD6eL.png" rel="nofollow noreferrer">offer from http://0.0.0.0:3000/</a></p>
  
  <p><strong>jobs_controller.rb</strong></p>
  
  <pre><code>class JobsController &lt; ApplicationController
    before_action :set_job, only: [:show, :edit, :update, :destroy]
    before_action :authenticate_user!, except: [:index, :show]
  
     def destroy
        @job = Job.find(params[:id])
        @job.destroy
  
      end
  
    def set_job
       @job = Job.find(params[:id])
    end
    def index
      @jobs = Job.all
      fresh_when last_modified:
      @jobs.maximum(:updated_at)
      if params[:search]
      @jobs = Job.search(params[:search]).order("created_at DESC")
      else
      @jobs = Job.all.order("created_at DESC")
   end
   if(params.has_key?(:job_type))
      @jobs = Job.where(job_type: params[:job_type]).order("created_at desc")
    end
  
    # GET /jobs/1
    # GET /jobs/1.json
    def show
       @job = Job.find(params[:id])
    end
  
    # GET /jobs/new
    def new
      @job = current_user.jobs.build
      @job = Job.new
    end
  
  
  
    # GET /jobs/1/edit
    def edit
   @job = Job.find(params[:id])
    end
    # POST /jobs
    # POST /jobs.json
    def create
      @job = current_user.jobs.build(@job_params)
      job_type = params[:job_type]
      job_salary = params[:salary]
      job_title = params[:title]
  
  
  
         respond_to do |format|
        if @job.save
          format.html { redirect_to @job, notice: 'Your job listing was purchased successfully!' }
          format.json { render :show, status: :created, location: @job }
        else
          format.html { render :new }
          format.json { render json: @job.errors, status: :unprocessable_entity }
        end
      end
  
  
    def update
       @job = Job.find(params[:id])
     respond_to do |format|
       if @job.update(job_params)
         format.html { redirect_to @job, notice: 'Job was successfully updated.' }
         format.json { render :show, status: :ok, location: @job }
       else
         format.html { render :edit }
         format.json { render json: @job.errors, status: :unprocessable_entity }
       end
     end
   end
  
  
  
      def job_params
        params.require(:job).permit(:title, :description, :requirements, :url, :job_type, :location, :job_author, :remote, :apply_url, :avatar, :salary, :multisport_card, :medical_care, :cold_drinks, :parking, :job_category)
      end
  end
  end
  end
  </code></pre>
  
  <p><strong>_form.html.erb</strong></p>
  
  <pre><code>&lt;%= simple_form_for @job, html: { multipart: true } do |f| %&gt;
  
        &lt;div class="field"&gt;
          &lt;div class="control"&gt;
          &lt;%= f.input :title, required: true,input_html: { class: "input is-rounded" }, wrapper: false, label_html: { class: "label" }, label: "Tytuł stanowiska" %&gt;
          &lt;/div&gt;
        &lt;/div&gt;
  
        &lt;div class="field"&gt;
          &lt;div class="control"&gt;
            &lt;%= f.input :apply_url, required: true, input_html: { class: "input is-rounded" }, wrapper: false, label_html: { class: "label" }, label: "Adres do rekrutacji" %&gt;
          &lt;/div&gt;
        &lt;/div&gt;
     &lt;div class="number_field"&gt;
          &lt;div class="control"&gt;
            &lt;%= f.input :salary, required: true, input_html: { class: "input is-rounded" }, wrapper: false, label_html: { class: "label" }, label: "Wynagrodzenie ($) / rok" %&gt;
          &lt;/div&gt;
        &lt;/div&gt;
  &lt;br&gt;
  
      &lt;div class="columns"&gt;
        &lt;div class="field column is-4"&gt;
          &lt;div class="control"&gt;
            &lt;label class="label"&gt;Typ zatrudnienia:&lt;/label&gt;
            &lt;div class="control has-icons-left"&gt;
              &lt;span class="select"&gt;
                &lt;%= f.input_field :job_type, required: true, collection: Job::JOB_TYPES, prompt: "Wybierz typ zatrudnienia", class: "input is-rounded" %&gt;
              &lt;/span&gt;
              &lt;span class="icon is-small is-left"&gt;
                &lt;i class="fa fa-briefcase"&gt;&lt;/i&gt;
              &lt;/span&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="field column is-4"&gt;
          &lt;div class="control"&gt;
            &lt;label class="label"&gt;Kategoria&lt;/label&gt;
            &lt;div class="control has-icons-left"&gt;
              &lt;span class="select"&gt;
                &lt;%= f.input_field :job_type, required: true, collection: Job::JOB_CATEGORY, prompt: "Wybierz kategorie", class: "input is-rounded" %&gt;
              &lt;/span&gt;
              &lt;span class="icon is-small is-left"&gt;
                &lt;i class="fa fa-briefcase"&gt;&lt;/i&gt;
              &lt;/span&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
  
        &lt;div class="column"&gt;
  
          &lt;div class="field"&gt;
            &lt;div class="control"&gt;
              &lt;%= f.input :location, required: true, input_html: { class: "input is-rounded" }, wrapper: false, label_html: { class: "label" }, label: "Lokalizacja" %&gt;
            &lt;/div&gt;
          &lt;/div&gt;
  
        &lt;/div&gt;
      &lt;/div&gt;
  &lt;div class="field column"&gt;
  
        &lt;div class="field"&gt;
          &lt;div class="control"&gt;
            &lt;%= f.input :description, required: true, input_html: { class: "textarea is-rounded" }, wrapper: false, label_html: { class: "label" }, label: "Opis" %&gt;
          &lt;/div&gt;
        &lt;/div&gt;
         &lt;div class="field"&gt;
           &lt;div class="control"&gt;
            &lt;%= f.input :requirements, required: true, input_html: { class: "textarea is-rounded" }, wrapper: false, label_html: { class: "label" }, label: "Wymagania" %&gt;
          &lt;/div&gt;
        &lt;/div&gt;
  
  
      &lt;div class="columns"&gt;
  
        &lt;div class="field column"&gt;
          &lt;div class="control"&gt;
            &lt;%= f.input :job_author, required: true, input_html: { class: "input is-rounded" }, wrapper: false, label_html: { class: "label" }, label: "Firma" %&gt;
          &lt;/div&gt;
        &lt;/div&gt;
  
        &lt;div class="field column"&gt;
          &lt;div class="control"&gt;
            &lt;%= f.input :url, required: true, input_html: { class: "input is-rounded" }, wrapper: false, label_html: { class: "label" }, label: "Strona Firmy" %&gt;
          &lt;/div&gt;
        &lt;/div&gt;
  
      &lt;/div&gt;
  
      &lt;div class="columns"&gt;
        &lt;div class="field column is-4"&gt;
          &lt;div class="control"&gt;
            &lt;label class="label"&gt;Logo firmy&lt;/label&gt;
            &lt;div class="file"&gt;
              &lt;label class="file-label"&gt;
                &lt;%= f.input :avatar, as: :file, required: false, input_html: { class:"file-input is-rounded job-avatar" }, label: false, wrapper: false %&gt;
                  &lt;span class="file-cta"&gt;
                    &lt;span class="file-icon"&gt;&lt;i class="fa fa-upload"&gt;&lt;/i&gt;&lt;/span&gt;
                    &lt;span class="file-label"&gt;Wyślij na serwer&lt;/span&gt;
                  &lt;/span&gt;
              &lt;/label&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
  
          &lt;div class="field"&gt;
            &lt;div class="control"&gt;
              &lt;label for="job[remote]"&gt;
                &lt;%= f.input :remote, required: false, input_html: { class: "checkbox is-rounded"}, wrapper: false, label: false %&gt;
                Praca zdalna
  
  
            &lt;/div&gt;
             &lt;div class="control"&gt;
              &lt;label for="job[multisport_card]"&gt;
                &lt;%= f.input :multisport_card, required: false, input_html: { class: "checkbox is-rounded"}, wrapper: false, label: false %&gt;
                Karta multisport
  
  
            &lt;/div&gt;
             &lt;div class="control"&gt;
              &lt;label for="job[medical_care]"&gt;
                &lt;%= f.input :medical_care, required: false, input_html: { class: "checkbox is-rounded"}, wrapper: false, label: false %&gt;
                Opieka medycnza
  
  
            &lt;/div&gt;
             &lt;div class="control"&gt;
              &lt;label for="job[cold_drinks]"&gt;
                &lt;%= f.input :cold_drinks, required: false, input_html: { class: "checkbox is-rounded"}, wrapper: false, label: false %&gt;
                Zimne napoje
  
  
            &lt;/div&gt;
             &lt;div class="control"&gt;
              &lt;label for="job[parking]"&gt;
                &lt;%= f.input :parking, required: false, input_html: { class: "checkbox is-rounded"}, wrapper: false, label: false %&gt;
                Parking
  
  
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;div class="column"&gt;
          &lt;output id="list"&gt;&lt;/output&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;hr /&gt;
  &lt;%= link_to 'Subscribe to add offer', new_subscription_path %&gt;
  
  
  &lt;%= f.button :submit, class: "button is-link is-fullwidth is-rounded", value: "Dodaj ofertę pracy" %&gt;
  
  &lt;% end %&gt;
  </code></pre>
  
  <p><strong>routes.rb</strong></p>
  
  <pre><code>require 'sidekiq/web'
  
  Rails.application.routes.draw do
    resources :jobs
    resource :subscription
    resources :meetups
    resources :posts do
      resources :comments
    end
    resources :meetups do
      resources :discussions
    end
  
    devise_for :users
    root to: 'welcome#index'
    get 'posts', to: 'posts#index'
    get '/jobs',   to: 'jobs#index'
    get '/team', to: 'team#index'
    get '/meetups', to: 'meetups#index'
  end
  </code></pre>
  
  <p><a href="https://github.com/piotrmatusik/new_project" rel="nofollow noreferrer">repository here</a> &lt;---------------------------</p>