[Nitro] Questions on Element, Control and rendering

George Moschovitis george.moschovitis at gmail.com
Sun Jan 22 05:19:15 EST 2006


thanks ;-) I will have a look.

-g.

On 1/21/06, Joshua Hoke <nitro at tap.homeip.net> wrote:
> (Resent with the correct From address.)
>
> On Wed, Jan 18, 2006 at 03:50:54PM +0200, George Moschovitis wrote:
> > > As an example, I want to code a generic calendar that I can use
> > > everywhere I need/want.
> >
> > funny, i was working on this too ;-)
>
>
> This is what I use Nitro for (to generate a calendar of events.) I don't
> know how much you have worked out already, but attached is some code
> that might be helpful to generate the calendar. You should be able to
> use it like this:
>
> make_month_table(2006, 1) { |date|
>    response = "#{date.mday}"
>    # You could also add events or whatever content you want to go
>    # in the cell for this day.
>
>    return response
> }
>
> I guess it's up to you how to integrate it with what you're doing.
>
> Joshua Hoke
>
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>
>
>


--
http://www.gmosx.com
http://www.navel.gr
http://www.nitrohq.com




More information about the Nitro-general mailing list