>
> class ArtController < ApplicationController
> layout "main"
> scaffold :art
>
> def rec
>
> a = a + ''hellomoto''
> end
> def srec
> for i in 0...5
> # run rec here (<- i dont know how do it )
> end
>
>
> end
> end
>
Just use ....
5.times do
rec
end
Or
self.rec
Myself, I like the second form better (self.rec), because it tells
the reader, what object you are using
cu jc
--
InVisible GmbH, Langgr?tstrasse 172, 8047 Z?rich
Phone: +41 44 401 09 30
http://www.invisible.ch http://not.invisible.ch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2361 bytes
Desc: not available
Url :
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060117/ba0d4c21/smime-0001.bin