Displaying 1 result from an estimated 1 matches for "register_date".
2006 Apr 04
1
using form_remote_tag and radio_button
...ct a date using radio buttons. The following
code shows the last 7 days.
<%= form_remote_tag(:update => ''register_order'',
:url => { :action => :register_orders } ) %>
<% 1.upto(7) do |i| %>
<%= radio_button "date", "register_date", i.days.ago.strftime("%Y-%m-%d") %>
<%= i.days.ago.strftime("%Y-%m-%d") %>
<br />
<% end %>
<br />
<%= submit_tag "Register" %>
<%= end_form_tag %>
<div id="register_order"></div&g...