Thank you Carlos, I have try this:
<%= simple_form_for(@upload_info[:url], :html => {:multipart =>
true }) do |f| %>
<%= f.input :token, :as => :hidden, :input_html => { :value =>
"#{@upload_info[:token]}" } %>
<%= f.input :yt_video_id, :as => :file, :input_html => {:class
=> 'upload_new_microfunc'} %>
<div class="actions">
<%= f.button :submit, "Upload video", :class => 'btn-large
btn-primary', "data-disable-with" => "#{t('.upload_video')}" %>
</div>
<% end %>
But this it does not works for me.
How can I fix this problem?
Thank you
On May 25, 10:19 am, Carlos Antonio da Silva