rhtmlã®ãã³ãã¬ã¼ãå
ã§
<%= form_tag({:action=>"list"}, {:method=>"get"}) %>
ããªã¼ã¯ã¼ãæ¤ç´¢<br />
<input name="keyword" value="<%=h @params[:keyword] %>"/>
<%= submit_tag "æ¤ç´¢"%>
<%= end_form_tag %>
ãã®ããã«è¨è¿°ãããã¨ã§
<form action="/schedules/list" method="get">
ããªã¼ã¯ã¼ãæ¤ç´¢<br>
<input name="keyword" value="ãã³ã¹">
<input name="commit" value="æ¤ç´¢" type="submit">
</form>
methodã"get"ã«æå®ã§ããã
æå
<%= form_tag(:action=>"list", :method=>"get") %>
ããªã¼ã¯ã¼ãæ¤ç´¢<br />
<input name="keyword" value="<%=h @params[:keyword] %>"/>
<%= submit_tag "æ¤ç´¢"%>
<%= end_form_tag %>
ããããã¦ãããã
<form action="/schedules/list?method=get" method="post">
ããªã¼ã¯ã¼ãæ¤ç´¢<br>
<input name="keyword" value="ãã³ã¹">
<input name="commit" value="æ¤ç´¢" type="submit">
</form>
postã«ãªã£ã¦ãã¾ã£ãã
form_tagã®å¼æ°ãè¤æ°ã«ãªãã¨ãã¯ã注æã§ãã
<%= form_tag({:action => 'simple_save'}, {:method => "post", :multipart => true}) %>
ãã®ãã¼ã¸ã§ãµã³ãã«è¦ã¤ãã¾ããã