[Rails] Re: Dynamic form? Not really!

Gerard mailing at gp-net.nl
Sun Jan 1 12:26:40 GMT 2006


Kevin,

I did not digest the helper chapter yet in the Agile webdev book, but I asume 
you mean create a shareable function called cycle, and remove the code from 
the view?

Grtz n Thanx

Gerard.

On Saturday 31 December 2005 14:23, Kevin Olbrich tried to type something 
like:
> You can also use the 'cycle' helper to do the table striping.
>
> Do something like this...
>
> <tr class="ListLine<%= cycle("0","1") %>">

-- 
"Who cares if it doesn't do anything?  It was made with our new
Triple-Iso-Bifurcated-Krypton-Gate-MOS process ..."

My $Grtz =~ Gerard;
~
:wq!





More information about the Rails mailing list