I can get the integer for the day 'number' (0 to 6) from a date using the wday method, ie. Date.today.wday
But how do I use the array or hash from Date.rb, it does not appear to be initialized at the time of use.
Ultimately what I wish to create is a select box (monday-sunday) with today's day pre-selected.
I've looked for a Rails helper to this but there does not appear to be one.
I can get the integer for the day 'number' (0 to 6) from a date using the wday method, ie. Date.today.wday
But how do I use the array or hash from Date.rb, it does not appear to be initialized at the time of use.
Ultimately what I wish to create is a select box (monday-sunday) with today's day pre-selected.
I've looked for a Rails helper to this but there does not appear to be one.
I can get the integer for the day 'number' (0 to 6) from a date using
the wday method, ie. Date.today.wday
But how do I use the array or hash from Date.rb, it does not appear to
be initialized at the time of use.
Ultimately what I wish to create is a select box (monday-sunday) with
today's day pre-selected.
I've looked for a Rails helper to this but there does not appear to be
one.