Julian Leviston wrote:
> On 20/05/2009, at 12:57 AM, Morgan Morgan
> <[email protected]
> > wrote:
>
>> against all the returned scheduleable and scheduled hours for those 7
>>
> My suggestion is to drive things from the view requirements. What does
> your view actually need to output? From there, work backwards to the
> code required.
>
> If you give us morecontect, we can help further.
>
> Blog: http://random8.zenunit.com/
> Twitter: http://twitter.com/random8r
> Learn: http://sensei.zenunit.com/
> New video up now at http://sensei.zenunit.com/ real fastcgi rails
> deploy process! Check it out now!
it's basically just a calendar view from 8am to 12pm with colours for
each of the schedule types returned
so it's a grid
b = blue
r = red
there are actually 5 colours but in the interest of berevity i chose
two.
8:00 9:00 10:00 11:00 12:00 1:00 2:00 3:00 4:00 5:00
6:00 7:00
name0 b b r r r b r b b r b
r
name1 b b r r r b r b b r b
r
name2 b b r r r b r b b r b
r
name3 b b r r r b r b b r b
r
name4 b b r r r b r b b r b
r
name5 b b r r r b r b b r b
r
name6 b b r r r b r b b r b
r
this represents one of the 7 days and the type of schedule is determined
in a db table.
--
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 [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
-~----------~----~----~----~------~----~------~--~---