title: Rails - paperclip not uploading any images
body: <p>I've installed paperclip gem for my Rails project. Everything seems to be working, I am getting no errors but when im trying to upload the picture for my record - as soon as I click the submit button the page just refreshes and the image doesn't get uploaded.</p>
  
  <p>Here is the line with the file field:</p>
  
  <pre><code>&lt;%= form_for @wiki_edytowany, url: {action: "wiki_aktualizuj", id: @wiki_edytowany.id} do |b| %&gt;
  &lt;table class="table table-bordered"&gt;
      &lt;tr&gt;
        &lt;td&gt;Ikona&lt;/td&gt;
        &lt;td&gt;&lt;%= b.file_field :ikona %&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
         &lt;td&gt;&lt;/td&gt;
         &lt;td&gt;&lt;%= b.submit "Edytuj", class: 'btn btn-success' %&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;%= link_to "Anuluj", ('wiki_devtest'), class: "btn btn-success" %&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>My model:</p>
  
  <pre><code>class Items &lt; ActiveRecord::Base
  
    has_attached_file :ikona, styles: { :medium =&gt; "128x128&gt;", :thumb =&gt; "32x32&gt;" }
  
  end
  </code></pre>
  
  <p>Any my controller params for it:</p>
  
  <pre><code>def przedmiotyparams
      params.require(:przedmioty).permit(:nazwa, :typ, :waga, :rzadkosc, :uzywalne, :obrazenia, :miejsce, :magazynek, :obrona, :glod, :pragnienie, :efekt, :zakazenie, :zasieg, :szybkosc, :opis, :ciekawostki, :ikona, :wersja)
    end
  </code></pre>
  
  <p>If anyone does know the solution - please help. Thanks in advance!</p>