@@ -25,7 +25,7 @@ constexpr auto INDEX_TEMPLATE =
2525 " <div id=\" app\" ></div>\n "
2626 " \n "
2727 " <!-- vue template -->\n "
28- " <script type=\" text/x-template\" id=\" %varname%-list -template\" >\n "
28+ " <script type=\" text/x-template\" id=\" %varname%-index -template\" >\n "
2929 " <h1>Listing %caption%</h1>\n "
3030 " <p><a href=\" /%varname%/create\" >Create a new %caption%</a></p>\n "
3131 " <table border=\" 1\" cellpadding=\" 5\" style=\" border: 1px #d0d0d0 solid; border-collapse: collapse;\" >\n "
@@ -49,7 +49,7 @@ constexpr auto INDEX_TEMPLATE =
4949 " items: <%==$ items %|% \" {}\" %>\n "
5050 " };\n "
5151 " },\n "
52- " template: \" #%varname%-list -template\" ,\n "
52+ " template: \" #%varname%-index -template\" ,\n "
5353 " methods: {\n "
5454 " postRemove: function(url) {\n "
5555 " if (confirm('Are you sure?')) {\n "
@@ -166,7 +166,7 @@ constexpr auto SAVE_TEMPLATE =
166166 " <div id=\" app\" ></div>\n "
167167 " \n "
168168 " <!-- vue template -->\n "
169- " <script type=\" text/x-template\" id=\" %varname%-template\" >\n "
169+ " <script type=\" text/x-template\" id=\" %varname%-save- template\" >\n "
170170 " <h1>Editing %caption%</h1>\n "
171171 " <p style=\" color: red\" ><%=$ error %></p>\n "
172172 " <p style=\" color: green\" ><%=$ notice %></p>\n "
@@ -192,7 +192,7 @@ constexpr auto SAVE_TEMPLATE =
192192 " authenticity_token: '<%= authenticityToken() %>',\n "
193193 " };\n "
194194 " },\n "
195- " template: \" #%varname%-template\" ,\n "
195+ " template: \" #%varname%-save- template\" ,\n "
196196 " }).mount(\" #app\" );\n "
197197 " </script>\n "
198198 " </body>\n "
0 commit comments