@@ -349,8 +349,8 @@ def simple_format(text, html_options = {}, options = {})
349
349
# and passing the name of the cycle. The current cycle string can be obtained
350
350
# anytime using the current_cycle method.
351
351
#
352
- # # Alternate CSS classes for even and odd numbers...
353
- # @items = [1,2,3,4]
352
+ # <% # Alternate CSS classes for even and odd numbers... %>
353
+ # <% @items = [1,2,3,4] %>
354
354
# <table>
355
355
# <% @items.each do |item| %>
356
356
# <tr class="<%= cycle("odd", "even") -%>">
@@ -360,12 +360,12 @@ def simple_format(text, html_options = {}, options = {})
360
360
# </table>
361
361
#
362
362
#
363
- # # Cycle CSS classes for rows, and text colors for values within each row
364
- # @items = [
363
+ # <% # Cycle CSS classes for rows, and text colors for values within each row %>
364
+ # <% @items = [
365
365
# { first: "Robert", middle: "Daniel", last: "James" },
366
366
# { first: "Emily", middle: "Shannon", maiden: "Pike", last: "Hicks" },
367
367
# { first: "June", middle: "Dae", last: "Jones" },
368
- # ]
368
+ # ] %>
369
369
# <% @items.each do |item| %>
370
370
# <tr class="<%= cycle("odd", "even", name: "row_class") -%>">
371
371
# <td>
@@ -396,8 +396,8 @@ def cycle(first_value, *values)
396
396
# for complex table highlighting or any other design need which requires
397
397
# the current cycle string in more than one place.
398
398
#
399
- # # Alternate background colors
400
- # @items = [1,2,3,4]
399
+ # <% # Alternate background colors %>
400
+ # <% @items = [1,2,3,4] %>
401
401
# <% @items.each do |item| %>
402
402
# <div style="background-color:<%= cycle("red","white","blue") %>">
403
403
# <span style="background-color:<%= current_cycle %>"><%= item %></span>
@@ -411,8 +411,8 @@ def current_cycle(name = "default")
411
411
# Resets a cycle so that it starts from the first element the next time
412
412
# it is called. Pass in +name+ to reset a named cycle.
413
413
#
414
- # # Alternate CSS classes for even and odd numbers...
415
- # @items = [[1,2,3,4], [5,6,3], [3,4,5,6,7,4]]
414
+ # <% # Alternate CSS classes for even and odd numbers... %>
415
+ # <% @items = [[1,2,3,4], [5,6,3], [3,4,5,6,7,4]] %>
416
416
# <table>
417
417
# <% @items.each do |item| %>
418
418
# <tr class="<%= cycle("even", "odd") -%>">
0 commit comments