Greg Hauptmann
2006-Sep-01 21:59 UTC
alternating row formats for tables - does a rails tag exist?
Hi, Anyone know if rails supports alternating row formatting (e.g. different colors for each row)? I thought I remember seeing something for this however I can''t seem to find anything. Tks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Hammed Malik
2006-Sep-01 22:47 UTC
Re: alternating row formats for tables - does a rails tag exist?
<tr class="<%= cycle ''even'', ''odd'' %>"><td>...</td></tr> On 9/2/06, Greg Hauptmann <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > Hi, > > Anyone know if rails supports alternating row formatting (e.g. different > colors for each row)? > > I thought I remember seeing something for this however I can''t seem to > find anything. > > > Tks > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Greg H
2006-Sep-02 01:20 UTC
Re: alternating row formats for tables - does a rails tag exist?
thanks Hammed - I''ve discovered the texthelper On 9/2/06, Hammed Malik <hammed-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > <tr class="<%= cycle ''even'', ''odd'' %>"><td>...</td></tr> > > > On 9/2/06, Greg Hauptmann < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > > > > Hi, > > > > Anyone know if rails supports alternating row formatting ( e.g. > > different > > colors for each row)? > > > > I thought I remember seeing something for this however I can''t seem to > > find anything. > > > > > > Tks > > > > -- > > Posted via http://www.ruby-forum.com/ . > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---