ruby on rails - Rewrite js.erb file to js.slim -
what below js.erb template when rewritten slim?
'<%= form_for(@question) |f| %>' $('.option-partial').html("<%= j render(partial: @question_type, locals: {f: f}) %>"); '<% end %>'
| ' = form_for(@question) |f| | ' $('.option-partial').html(" = j render(partial: @question_type, locals: {f: f}) | "); ' | '
visit http://erb2slim.com/ more help
Comments
Post a Comment