search for: row_class

Displaying 3 results from an estimated 3 matches for "row_class".

Did you mean: r_class
2006 Jan 15
13
Hotlinking an entire row in an HTML table
Hi, This seems simple but I cant get it to work... I have a table with 4 or 5 columns and 20-30 rows. I''d like to have the ability to click anywhere in a particular row to fire an action, such as bringing up a "Details" page for the clicked row. This would eliminate the need to generate a "Details" link at the end of every row, which is what I have now and looks
2006 Mar 15
0
Grid making helper in view
...# creates an array of arrays containing num_column items num_columns.times do rows << items.slice!(0..num_columns-1) end # for each row of items rows.size.times do |i| # figure out if we''re printing the top row, or subsequent rows. if i.eql?(0) then row_class = "top" else row_class = "" end print %Q{\s\s<tr class="#{row_class}">\n} rows[i].each do |item| print yield(item) end (num_columns - rows[i].size).times print %Q{\s\s\s\s<td class="blank">&nbsp;</td&...
2007 Feb 17
5
render collection with index
Is there any method for getting the current iteration (for changing row colors) in the category partial? <%=render(:partial => "category", :collection => @categories)%> thanks, andy -- Andrew Stone --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post