ruby on rails - Upload with Carrierwave doesn't work -


I use a form of upload file in my app.

That's why I am in my correction scene and I make a partial call to make the sound, all my fields were hidden, I feel that when I click on my submit button, my upload process begins But nothing happened.

I do not search my bug, can someone help me?

My Corrections_View

  & lt;% = Form_new for improvement. Improvement | & Gt%; & Lt;% @ sounds_dmcloud.each do Dmcloud | | & Gt%; & Lt;% if dmcloud.retranscript == Incorrect% & gt; & Lt; Tr class = "muted" & gt; & Lt; Td square = "link_sound" & gt; & Lt;% = dmcloud.title% & gt; & Lt; / TD & gt; & Lt; TD & gt; & Lt;% = Correction Selection: corrector_id, hash [@ correctors.map {| U | [U.email, u.id]}], {: prompt = & gt; 'Choix delivery'} ,: class = & gt; 'Corrector_select'% & gt; & Lt; / TD & gt; & Lt; Td class = "data_state" data-stat = '50' & gt; & Lt;% = Render 'sound / correction' ,: dmcloud = & gt; Dmcloud% & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt;% end% & gt; & Lt;% end% & gt; & Lt;% end% & gt;  

My partial

  <% = form_for sound.new ,: html = & gt; {: Multipurpose = & gt; True,: ID = & gt; "File upload" ,: style => 'Margin: 0;'} do. Sound | & Gt%; & Lt;% = sound.hidden_field: user_id ,: value = & gt; Current_user.id% & gt; & Lt;% = sound.hidden_field: title ,: value = & gt; Dmcloud.title% & gt; & Lt;% = sound.hidden_field: state ,: value = & gt; 1%> & Lt;% = sound.hidden_field: remote_file_url ,: value = & gt; Dmcloud.url% & gt; & Lt; A href = "# myModal" data-toggle = "modal" data-backdrop = "static" data-keyboard = 'wrong' class = "btn-atoth" type = "submit" id = "startUpload" & gt; & Lt; Span class = "text-menu" & gt; Transceiver & lt; / Span & gt; & Lt; / A & gt; & Lt;% end% & gt;  

My Sound Controller

  def new @ sound = sound.new response_to do format | Format.html # new.html.erb format.json {render json: @sound} Make end to def @ sound = sound.New (param [: sound]) @ sound.title = params [: title] .to_s.gsub (/ \ [| \] | "/" ',' ') @ Sound.user_id = current_user.id if answer_woulds_o_source; Format; Format.html {Render: Jason = & gt; [@ Voice.tv_jack_upload] .to_json,: Content_type = & gt; 'Text / html' ,: layout = & gt; Wrong} format.json {render: jason = & gt; {: Files = & gt; [@ Sound.to_jq_upload]}} Finally render: json = & gt; When I click on the 'Transcrire' button, log in server: [[: Error = & gt; "Error de transcription (error 304)"}],: position => Started "/assets/loading.gif" for 304 End End  

  127.0.0.1 2014-04-28 17:15:45 + 200200 Served Asset / Loading. Gif - 200 OK (29 min.)  

When I click on my button, no action is taken on my model, just to my model But my uploads did not start N and there is no error on my log server.

I use this model and uploads it to my menus for upload files and it works but it does not work on this page


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -