Skip to content

Commit

Permalink
Remove unused variable in code example [ci-skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanhefner committed Nov 24, 2023
1 parent 4bfa69a commit ed694bf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions actionview/lib/action_view/helpers/text_helper.rb
Expand Up @@ -361,9 +361,11 @@ def simple_format(text, html_options = {}, options = {})
#
#
# # Cycle CSS classes for rows, and text colors for values within each row
# @items = x = [{first: 'Robert', middle: 'Daniel', last: 'James'},
# {first: 'Emily', middle: 'Shannon', maiden: 'Pike', last: 'Hicks'},
# {first: 'June', middle: 'Dae', last: 'Jones'}]
# @items = [
# { first: "Robert", middle: "Daniel", last: "James" },
# { first: "Emily", middle: "Shannon", maiden: "Pike", last: "Hicks" },
# { first: "June", middle: "Dae", last: "Jones" },
# ]
# <% @items.each do |item| %>
# <tr class="<%= cycle("odd", "even", name: "row_class") -%>">
# <td>
Expand Down

0 comments on commit ed694bf

Please sign in to comment.