title: Rails how to create a multiple choice image upload
body: <p>I want to create an image uploader. Where the user can either paste an url to an image that then gets uploaded or upload a image from their local computer. And how should I validate for the Image? </p>
  
  <p>How do I create this with paperclip or, some other image upload gem? </p>
  
  <p><strong>My view:</strong> </p>
  
  <pre><code>&lt;%= simple_form_for [:admin, @konkurrancer], :html =&gt; { :multipart =&gt; true } do |f| %&gt;
      &lt;%= f.input :name, :label =&gt; 'Titel', :style =&gt; 'width:500;' %&gt;
      &lt;%= f.file_field :photo, :label =&gt; '125x125', :style =&gt; 'width:250;' %&gt; or 
      &lt;%= f.input :photo, :label =&gt; '125x125', :style =&gt; 'width:500;' %&gt;
      &lt;%= f.button :submit, :value =&gt; 'Create item' %&gt;
  &lt;% end %&gt;
  </code></pre>