title: Custom Post action not passing param
body: <p>I have a a custom post request as follows:</p>
  
  <pre><code>= form_for(@property, :html =&gt; {:id =&gt; "promo-upload-form"} , :url =&gt; url_for(:action =&gt; 'update_promo_image'),:method =&gt; :post) do |f|
  </code></pre>
  
  <p>The route is as follows:</p>
  
  <pre><code>post 'properties/update_promo_image', :as =&gt; 'update_promo_image'
  </code></pre>
  
  <p>It takes me to this action on controller:</p>
  
  <pre><code>def update_promo_image
      @property = Property.find(params[:id])
  
  
      if @property.update(property_params)
        respond_to do |format|
          format.html
          format.js
        end
      else
        render 'edit'
      end
    end
  </code></pre>
  
  <p>But I get the error:</p>
  
  <blockquote>
    <p>Couldn't find Property without an ID</p>
  </blockquote>
  
  <p>If I revert this back to the standard/default Update action it works perfectly.</p>
  
  <p>Does anyone have any insight as to what I'm doing wrong please?</p>
  
  <p>Thanks
  Steve</p>