>    from_date = Date.parse(params[:startdate]) if params[:startdate]
>      to_date = Date.parse(params[:enddate])   if params[:enddate]

I forgot to mention I don't know if there's a Date.parse. Use Time.parse 
otherwise...


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to