Hey, Marston. Dig this:
http://safari.oreilly.com/0768667208/ch07lev1sec23
Does that help out?
On 8/27/06, Marston <sugarstats-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
>
> Hey guys,
>
> I''ve been trying to figure out the best way to do something and
could
> use your advice.
>
> Basically what I''m trying to so is select a specific month and
year
> from a view form that goes to a controller action.
>
> Then from controller, I''m trying to find out how many days are in
the
> month or even better somehow just create an array of all the dates in
> that specific month for that year so I can iterate over it as I need to
> do some processing for each day in the month.
>
> >From my form I''m getting the following two variables:
>
> params[:select_month][:selected][:year]
>
> and
>
> params[:select_month][:selected][:month]
>
> I''m thinkin I might need to dig a little deeper into ruby to
create
> this functionality? Thanks for any thoughts.
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---