1
我將如何將下面的表單標籤轉換爲form_for?將表單標籤轉換爲簡單表單
<%= form_tag(contact_email_path, :method => 'post') do %>
<%= label_tag "Your email" %>
<%= text_field_tag "sender", @sender, :autofocus => true %>
<%= label_tag "Subject" %>
<%= text_field_tag "subject", @subject %>
<%= label_tag "Message" %>
<%= text_area_tag "message", @message %>
<%= submit_tag "Send Email" %>
<% end %>
你擊敗了某人。 +1 –