title: Upload image file to blob column using ruby on rails
body: <p>I have two fields in my edit page 1.domainName 2.logo
  When I click on submit button, selected picture and domain name should update the table 
  I tried the below, but its not updating the database.</p>
  
  <pre><code>&lt;%= form_for(@company, :multipart =&gt; true) do |form| %&gt; 
  &lt;table style="height: 400px; border: 5px; margin-left: 20px; "&gt;
  &lt;tr&gt;
          &lt;td width="40%"&gt;
            &lt;%= form.label :domain_name ,"Domain Name"%&gt;
          &lt;/td&gt;
          &lt;td&gt;
            &lt;%= form.text_field :domain_name %&gt;&lt;%= form.submit "Add Domain" %&gt;
          &lt;/td&gt;
    &lt;/tr&gt;
  &lt;tr&gt;
           &lt;td&gt;
              &lt;%= form.label :company_logo,"Company Logo" %&gt;
           &lt;/td&gt;
            &lt;td&gt;
                &lt;%= form.file_field :company_logo %&gt;
            &lt;/td&gt;
    &lt;/tr&gt;
    &lt;/table&gt;
  
  In controller
  def update
      @company=Company.find_by_company_id(params[:id])
      if @company.update_attributes(params[:company]) then
        render :text=&gt;"Company Details updated successfully"
      end
  end
  </code></pre>