0
當使用正常的非遠程請求時,此表單工作100%。但是,當我設置remote => true時,它不再發送提交值。我應該以完全不同的方式來做這件事嗎,還是有我失蹤的事情?rails 3 form_tag w/remote不發送提交詳細信息
<%= form_tag [voteable, Vote.new], :remote => true do |f| %>
<strong class="votes_balance"><%= voteable.votes_for - voteable.votes_against %></strong>
<%= submit_tag :up, { :name => "thumb_direction", :class => "vote_up" } %>
<%= submit_tag :down, { :name => "thumb_direction", :class => "vote_down" } %>
<%= hidden_field_tag :voteable_type, voteable.class %>
<% end %>
PARAMS
authenticity_token /8Dkx/EQc+VqgZd8f/eoWevm8AIgOwK0rzXqlGUzDUA=
utf8 ✓
voteable_type Article
應該送
authenticity_token /8Dkx/EQc+VqgZd8f/eoWevm8AIgOwK0rzXqlGUzDUA=
utf8 ✓
voteable_type Article
thumb_direction up