Hi,
I just dabbed Ruby on rails abit and what to know where is the right
place
to define a method, that prinf some output information to views, based
on
some variable.
I define a function "def foo " in contrioller but the calling from a
view
“test.rhtml” give errors. I google a while and did not find a quick
answer
for this. Or shall I do this in helper class?
May some one shed some light on this?
Thanks.