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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -