title: Ruby on rails: create action doesn't work, while new, edit and update (the same form as in create !) actions works - why?
body: <p>I have Realization model:</p>
  
  <pre><code># encoding : utf-8
  class Realization &lt; ActiveRecord::Base
    attr_accessible :city, :street, :title, :work, :photo, :date
  
    has_attached_file :photo
  end
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code># encoding : utf-8
  class RealizationsController &lt; ApplicationController
    before_filter :admin_required, :except =&gt; [:index,:show]
  
    # GET /realization/new
    def new
      @realization = Realization.new
      @realization.date = Time.now.__send__(:to_date).to_s
    end
  
    # POST /realization
    def create
      @realization = Realization.new(params[:realization])
  
      if @realization.save
        redirect_to @realization, notice: 'realization was successfully created.'
      else
        render action: "new"
      end
    end
  
  (...) others
  </code></pre>
  
  <p>View of form:</p>
  
  <pre><code>&lt;%= form_for @realization, :html =&gt; { :multipart =&gt; true } do |f| %&gt;
      &lt;% if @realization.errors.any? %&gt;
          &lt;div id="error_explanation"&gt;
            &lt;h2&gt;&lt;%= pluralize(@realization.errors.count, "error") %&gt; prohibited this realization from being saved:&lt;/h2&gt;
  
            &lt;ul&gt;
              &lt;% @realization.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="field"&gt;
        &lt;%= f.label :title %&gt;&lt;br /&gt;
        &lt;%= f.text_field :title %&gt;
      &lt;/div&gt;
      (...)
          &lt;div class="field"&gt;
              &lt;%= f.file_field :photo %&gt;
          &lt;/div&gt;
  
      &lt;div class="actions"&gt;
        &lt;%= f.submit "Submit" %&gt;
      &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>And routes : </p>
  
  <pre><code>resources :realizations
  </code></pre>
  
  <p>And WEBrick server info is that:</p>
  
  <pre><code>Started POST "/realizacje" for 127.0.0.1 at 2013-04-12 12:26:35 +0200
  Processing by RealizationsController#index as HTML
    Parameters: {"utf8"=&gt;"✓", "authenticity_token"=&gt;"zK5jP4ChBBY+R21TjrZkp4xGvCHViTFJ+8Fw6Og28YY=", "realization"=&gt;{"title"=&gt;"wwwwww", "street"=&gt;"", "city"=&gt;"", "work"=&gt;"", "date"=&gt;"2013-04-12"}, "commit"=&gt;"Submit"}
     (1.0ms)  SELECT COUNT(*) FROM "realizations" 
    Realization Load (2.0ms)  SELECT "realizations".* FROM "realizations" ORDER BY created_at DESC LIMIT 7 OFFSET 0
    User Load (1.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
    Rendered realizations/index.html.erb within layouts/application (156.0ms)
  Completed 200 OK in 340ms (Views: 333.0ms | ActiveRecord: 4.0ms)
  </code></pre>
  
  <p>While I use the form and push the submit it redirects/randers realizations/index without notice or errors even! 
  I have completely no idea why? Especialy that it worked before... 
  Maybe javascript added later on may be the reason?
  Paperclip works well in update so it isn't it... </p>