Commit b8e344dcec62c5dc0525e1f172c11c60077f016f
1 parent
533288e5
add template for render row and cell
Showing
2 changed files
with
3 additions
and
3 deletions
| @@ -107,10 +107,10 @@ module Kanjai | @@ -107,10 +107,10 @@ module Kanjai | ||
| 107 | "data-class='#{cell['className']}'", | 107 | "data-class='#{cell['className']}'", |
| 108 | ] | 108 | ] |
| 109 | 109 | ||
| 110 | - cells += ApplicationController.render 'kanjai/pages/templates/cell', assigns: {content: html.html_safe, cell: cell, class_name: cell_class_name, data_attributes: data_attributes.join(' ')} | 110 | + cells += ApplicationController.render file: 'kanjai/pages/templates/cell', assigns: {content: html.html_safe, cell: cell, class_name: cell_class_name, data_attributes: data_attributes.join(' ')} |
| 111 | end | 111 | end |
| 112 | 112 | ||
| 113 | - html += ApplicationController.render 'kanjai/pages/templates/row', assigns: {content: cells} | 113 | + html += ApplicationController.render file: 'kanjai/pages/templates/row', assigns: {content: cells} |
| 114 | 114 | ||
| 115 | end | 115 | end |
| 116 | 116 |