title: Year attribute is nil upon saving to database - not transferring from form
body: <p>My year attribute isn't transferring from the form dropdown menu. I'm not sure where I'm going wrong.</p>
  
  <p>My form:</p>
  
  <pre><code>  &lt;%= simple_form_for @movie do |f| %&gt;
  
      &lt;div class="form-group"&gt;
        &lt;%= f.input :title, placeholder: "Movie Title", input_html: { class: 'form-control' } %&gt;
      &lt;/div&gt;
  
      &lt;div class="form-row"&gt;
        &lt;div class="form-group col-md-6"&gt;
          &lt;%= f.input :year, as: :date,
              start_year: Date.today.year,
              end_year: Date.today.year - 100, 
              discard_day: true, order: [:year], 
              input_html: { class: 'form-control' } %&gt;
        &lt;/div&gt;
  </code></pre>
  
  <p>Controller code:</p>
  
  <pre><code>class MoviesController &lt; ApplicationController
    before_action :find_movie, only: [:show, :edit, :update, :destroy]
  
    def index
    end
  
    def new
      @movie = Movie.new
    end
  
    def create
      @movie = Movie.new(movie_params)
      if @movie.save
        redirect_to movie_path(@movie)
      else
        flash[:danger] = "Please try again!"
        redirect_to new_movie_path
      end
    end
  
    private
  
    def find_movie
      @movie = Movie.find(params[:id])
    end
  
    def movie_params
      params.require(:movie).permit(:title, :year, :genre, :poster, :director, :plot, :rating, :list_ids =&gt; [])
    end
  end
  </code></pre>
  
  <p>It looks and works as expected in the view, but year is nil when I check the database. Any ideas?</p>