2013-03-14 123 views

回答

1

與html相關的form_for幫助程序的選項必須位於html鍵中。像這樣:

<%= form_for(section, :html => {:target=>'new_section_frame'}) do |f| %> 
    ... 
<% end %> 
0

這是方式更短,應在最近的軌道版本一起使用:

<%= form_for(section, target: '_new') %> 
相關問題