<% form_tag '/index' do %>
<% text_field_tag 'date', '2009-01-01' %>
<% submit_tag 'Go' %>
<% end %>
You would think the textfield above would have "2009-01-01" string displayed. But it is not so. Need to specify "GET" method.
<% form_tag '/index', :method => :get do %>
...
No comments:
Post a Comment