Hi there, I''ve been developing a system using ruby but i''m still new with this language. I want to display a sales report for each month. Means that, user can select the start date and end date that they want to view. Then they will see the list of sales based on month. I''ve been doing this part for about 2 weeks but still can''t finish it. Anybody that can help me with this? Thanks in advance.... --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Sep 16, 2007, at 9:26 PM, Joen wrote:> Means that, user can select the start date and end date that they want > to view. Then they will see the list of sales based on month. I''ve > been doing this part for about 2 weeks but still can''t finish it. > Anybody that can help me with this?What part is giving you trouble? There are several things you have to do: 1. Create a way for the user to specify the date range 2. Do a find with conditions 3. Summarize that array 4. Present it --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
you might also want to use some graphs for presentation... http://nubyonrails.com/pages/gruff -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---