내 form_tag는 다음과 같습니다.왜 get_type을 요구할 때 form_tag 메소드가 게시물이 될까요?
<%= form_tag(:controller => "users", :action => "confirm", :method => "get") %>
html 출력은 다음과 같습니다.
<form accept-charset="UTF-8" action="https://stackoverflow.com/users/confirm?method=get" method="post">
왜이 작업을 수행합니까?
1을 참조하십시오 해시에 명시 : <% = 때 form_tag (' {: controller => "users", : action => "confirm"}, : method => "get") %>' –
이렇게하면 슬프게도 같은 결과가 나온다. – Noz