Skip to content

Instantly share code, notes, and snippets.

@mskeen
Last active April 25, 2023 09:33
Show Gist options
  • Save mskeen/8981723 to your computer and use it in GitHub Desktop.
Save mskeen/8981723 to your computer and use it in GitHub Desktop.
rails: insert a partial via javascript
$('#graph-preview').replaceWith("<%=j render partial: 'preview' %>");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment