On Thu, May 01, 2008 at 01:11:15PM +0200, Jan Prill wrote:
> Hi Holger,
> ok, also nur das Prinzip:
>
> def monat(datum)
> html = ''
> monat = datum.month
> tag = letzter_tag(datum)
> for i in 1..tag.day
> html += "<td>#{i.to_s}</td>"
> end
> html # = return html falls Du von Java oä kommst...
> end
okay jan war schneller -
evtl. noch ein hinweis die schreibweise #{x} rendert automatisch x.to_s,
kannste also .to_s sparen. (5 chars!)
:)
rene
--
I love deadlines. I like the whooshing sound they make as they go by.
(Douglas Adams)
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug