title: Job has many Applicants.. However, I can not get Job parameters to come over to the Applicant Form
body: <p>User can view jobs and then fill out application. I.E. job has many applications. When creating new application, the appropriate job attributes are not coming over to the form.</p>
  
  <p>I do have the relationship set up correctly. I am not correctly passing the parameters. When I create a new application, it does find the job_id. However, when on the application form, I would like more of the job attributes to show up, such as job.title. I think it is an issue with my controller.</p>
  
  <p>applications_controller.rb:</p>
  
  <pre><code>class ApplicationsController &lt; ApplicationController
    before_action :set_application, only: [:show, :edit, :update, :destroy]
  
    # GET /applications
    # GET /applications.json
    def index
      @applications = Application.all
    end
  
    # GET /applications/1
    # GET /applications/1.json
    def show
    end
  
    # GET /applications/new
    def new
      @application = Application.new
      @job = Job.find(params[:job_id])
    end
  
    # GET /applications/1/edit
    def edit
    end
  
    # POST /applications
    # POST /applications.json
    def create
      @job = Job.find(params[:job_id])
      @application = Application.new(application_params)
      @application.job = @job
      name = @job.title
  
      respond_to do |format|
        if @application.save
          format.html { redirect_to @application, notice: 'Application was successfully created.' }
          format.json { render :show, status: :created, location: @application }
        else
          format.html { render :new }
          format.json { render json: @application.errors, status: :unprocessable_entity }
        end
      end
    end
  
    # PATCH/PUT /applications/1
    # PATCH/PUT /applications/1.json
    def update
      respond_to do |format|
        if @application.update(application_params)
          format.html { redirect_to @application, notice: 'Application was successfully updated.' }
          format.json { render :show, status: :ok, location: @application }
        else
          format.html { render :edit }
          format.json { render json: @application.errors, status: :unprocessable_entity }
        end
      end
    end
  
    # DELETE /applications/1
    # DELETE /applications/1.json
    def destroy
      @application.destroy
      respond_to do |format|
        format.html { redirect_to applications_url, notice: 'Application was successfully destroyed.' }
        format.json { head :no_content }
      end
    end
  
    private
      # Use callbacks to share common setup or constraints between actions.
      def set_application
        @application = Application.find(params[:id])
      end
  
      # Never trust parameters from the scary internet, only allow the white list through.
      def application_params
        params[:application]
      end
  
       def job_params
        params.require(:job).permit(:title, :description, :status)
      end
  end
  </code></pre>
  
  <p>This is the table I have in jobs/index.html.erb  --> It has the link that launches new application... Am I supposed to be passing in local variables here?</p>
  
  <pre><code>  &lt;table class="table table-striped"&gt;
      &lt;thead&gt;
        &lt;tr&gt;
          &lt;th colspan="3"&gt; Current Job Openings&lt;/th&gt;
        &lt;/tr&gt;
      &lt;/thead&gt;
  
      &lt;tbody&gt;
        &lt;% @jobs.each do |job| %&gt;
          &lt;tr&gt;
            &lt;td&gt;&lt;%= job.title %&gt;&lt;/td&gt;
            &lt;td&gt;&lt;%= job.description  %&gt;&lt;/td&gt;
            &lt;td&gt;&lt;button type="button" class="newave-button medium grey move pull-right" style="color: white"&gt;&lt;%= link_to 'Online Application', new_job_application_path(job) %&gt;&lt;/button&gt;&lt;/td&gt;
          &lt;/tr&gt;
        &lt;% end %&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  </code></pre>
  
  <p>This actually launches applications/new.html.erb which simply contains a partial to render a new form:</p>
  
  <pre><code>&lt;%= render 'form' %&gt;
  </code></pre>
  
  <p>And finally, here is my applications/_form.html.erb that is being rendered. I would like to relate the job specific info at the top of the page..</p>
  
  <pre><code>&lt;%= link_to 'Back', jobs_path, class: "newave-button medium grey move" %&gt;
  
  &lt;%= form_for [@job, @application] do |f| %&gt;
    &lt;% if @application.errors.any? %&gt;
      &lt;div id="error_explanation"&gt;
        &lt;h3&gt;&lt;%= pluralize(@application.errors.count, "error") %&gt; prohibited this application from being saved:&lt;/h3&gt;
  
        &lt;ul&gt;
        &lt;% @application.errors.full_messages.each do |msg| %&gt;
          &lt;li&gt;&lt;%= msg %&gt;&lt;/li&gt;
        &lt;% end %&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;% end %&gt;
  
    &lt;div class="container small-width" id="application-form"&gt;
  
      &lt;h2&gt;Personal Information&lt;/h2&gt;
    &lt;%= params %&gt;
    &lt;div class="field"&gt;
      &lt;%= f.label :full_name, "Name" %&gt;&lt;br&gt;
      &lt;%= f.text_field :full_name%&gt;
    &lt;/div&gt;
    &lt;div class="actions"&gt;
      &lt;%= f.submit "Submit Form", class: 'btn btn-primary' %&gt;
    &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>