0
我嘗試從我的form_tag發送參數,但在input_type我沒有使用領域從模型。驗證form_tag沒有領域從模型在領域
我的form_tag代碼:
<%= form_tag(wizard2_path, :method => :post, :multipart => true, :id => "form_wizard") do -%>
<fieldset>
<legend>Select your bill file</legend>
<!-- TODO: include a preview of the bill - zurb foundation supports this-->
<input id="bill" name="bill" type="file" />
<!-- TODO: automatically import once selected? -->
<!-- TODO: display right page after, original content
<input id="upload_bill" name="commit" type="submit" value="Upload bill" />| <a href="" onclick="$('#no_bill').show();$('#first_bill').hide();">Cancel</a>
-->
<div class="large-2 columns" >
<!-- TODO: make the browse button the zurb class type -->
<p>
<%#= link_to "Upload", "#", :onclick => "changeWizard('upload');", :id => "upload_btn1", :class => "button postfix"%>
<%= button_tag "Upload", :id => "upload_btn1", :class => "button postfix", :onclick=>"bill_upload_validation();" %>
</p>
</div>
</fieldset>
<% end %>
,如果我錯了,請告訴我? 謝謝
謝謝你,解決我的問題 – tardjo