I have template written with Slim, and I want to use it with Ruby but I have these errors in index.slim.
-content_panel_file = '_partials/content_panel_5'
-content_box_file = '_partials/content_box_2'
- menu_file = '_partials/menu_side'
= render '_partials/template'
In template.slim:
.content-i
.content-box
== Slim::Template.new(content_box_file).render(Object.new, 'template_vars' => template_vars)
but it gave this error:
undefined local variable or method `content_box_file' for #<#<Class:0x00000003b28308>:0x00000003b685c0>
Did you mean? content_for