0
<%= button_to "Acknowledge", ack_something_path, :method => :put, :confirm => "Sure?" %>

我也想在确认框中显示

%br
%input{:name => "option1", :type => "checkbox", :value => "Milk"}
Milk                   
%br                   
%input{:name => "option2", :type => "checkbox", :value => "Butter"}                 
Butter                  
%br                   
%input{:name => "option3", :type => "checkbox", :value => "Cheese"}                    
Cheese                      
%br

bu我不知道怎么说

4

1 回答 1

0

确认警报不能很好地显示 HTML,通常仅用于快速是/否问题或通用警报。如果您想要更健壮的消息对话框,请查看 Jquery UI 对话框 (http://jqueryui.com/demos/dialog/)。

于 2012-04-16T18:22:13.763 回答