title: undefined method `to_key' for #<ActiveRecord::Relation []>
body: <p>I am trying to upload a new file using paperclip.</p>
  
  <pre><code>def new
          @other_font = OtherFont.all
          render :"other_fonts/new"
      end
  
  def create
      @new_font = OtherFont.new(font_params)
      if @new_font.save
          redirect other_fonts_path
      else
          flash[:notice] = "Was not able to upload, try again"
          render :'other_fonts/new'
      end
  end
  </code></pre>
  
  <p>Here is the view</p>
  
  <pre><code>&lt;div id="other fonts"&gt;
   &lt;%=form_for @other_font,:html =&gt; {:multipart =&gt; true} do |f| %&gt;
   &lt;div class="col-2"&gt;
    &lt;label&gt;
      &lt;%=f.file_field :file %&gt;
    &lt;/label&gt;
     &lt;/div&gt;
  
   &lt;%=f.submit "Upload Fonts" %&gt; 
  &lt;% end %&gt; 
  &lt;/div&gt;
  </code></pre>
  
  <p>and I get this error</p>
  
  <pre><code>NoMethodError - undefined method `to_key' for #&lt;ActiveRecord::Relation []&gt;: 
  </code></pre>
  
  <p>I've used paperclip, already for a bit. And I googled the error and people seemed to have about the same code.</p>