Skip to content

Commit 6ef7a08

Browse files
committed
revert helper to work with rails 6.1
1 parent 54c6fc4 commit 6ef7a08

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/generators/tailwindcss/scaffold/templates/edit.html.erb.tt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
<%%= render "form", <%= singular_table_name %>: @<%= singular_table_name %> %>
55

66
<%%= link_to "Show this <%= human_name.downcase %>", <%= model_resource_name(prefix: "@") %>, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
7-
<%%= link_to "Back to <%= human_name.pluralize.downcase %>", <%= index_helper(type: :path) %>, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
7+
<%%= link_to "Back to <%= human_name.pluralize.downcase %>", <%= index_helper %>_path, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
88
</div>

lib/generators/tailwindcss/scaffold/templates/index.html.erb.tt

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %>
1515
<%%= render <%= singular_table_name %> %>
1616
<p>
17-
<%%= link_to "Show this <%= human_name.downcase %>", <%= model_resource_name(singular_table_name) %>, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
17+
<%%= link_to "Show this <%= human_name.downcase %>", <%= singular_name %>, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
1818
</p>
1919
<%% end %>
2020
</div>

0 commit comments

Comments
 (0)