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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -