Displaying 2 results from an estimated 2 matches for "register_ord".
Did you mean:
registerword
2006 Apr 04
1
using form_remote_tag and radio_button
I want the user to select 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") %&...
2006 Mar 02
1
calling RoR from command line
...pt won''t insert records in the db. I had to
change the line to:
@date = time.strftime("%Y-%m-%d")
This is fine as long as I don''t have to register orders in the past.
The script is called from crontab using:
ruby ./script/runner -e production ''require "./register_orders.rb"''
I tried to do a ''register_orders.rb 2006-02-28'' so ARGV[0] would
become the date. But this prevents register_orders.rb from inserting
any records, regardless of the code above.
Is there any way that I can pass a parameter using script/runner
''requi...