List Info

Thread: Date Range in URL




Date Range in URL
country flaguser name
United States
2007-09-06 12:04:35
Hi,
I want to have a date range in my URL, such as
/charges/from/:from_year/:from_month/:from_day/
to/:to_year/:to_month/:to_day

I want to have two date selection controls one form, and
when the form
is submitted, I would like to be taken to the appropriate
URL, such
as /charges/from/2007/01/01/to/2007/12/31

The problem is, I don't know what options to pass
date_select in order
to have the params generated match those shown in my route.

Any help is appreciated!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Ruby on Rails" group.
To post to this group, send email to rubyonrailsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-unsubscribegooglegroups.com
For more options, visit this group at http://gro
ups.google.com/group/rubyonrails
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )