Sory for dummy question and bad english )
i’ve got a controller class
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
at the srec method i what run rec method at while. how i can do it?)
whats syntax?
thanks