Skip to content

Commit

Permalink
Update app example to use the shared helper
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ju committed Sep 21, 2018
1 parent 41b0a01 commit 9761852
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 66 deletions.
64 changes: 0 additions & 64 deletions spec/dummy/app/helpers/govuk_table_helper.rb

This file was deleted.

5 changes: 3 additions & 2 deletions spec/dummy/app/views/welcome/table.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<%= render 'govuk_publishing_components/components/title', title: "A table" %>
<%= render 'govuk_publishing_components/components/title', title: "Table helper" %>

<%= GovukPublishingComponents::AppHelpers::TableHelper.helper(self, "Income tax rates") do |t| %>

<%= govuk_table "Income tax rates" do |t| %>
<%= t.head do %>
<%= t.header "Band" %>
<%= t.header "Taxable income" %>
Expand Down

0 comments on commit 9761852

Please sign in to comment.