Skip to content

Instantly share code, notes, and snippets.

View ppyxmw's full-sized avatar

Michael Worthington ppyxmw

  • MegaPower
  • United Kingdom
View GitHub Profile
@MyklClason
MyklClason / ajax.js.erb
Last active November 7, 2017 01:48
Simple way to handle Bootstrap flash messages when using AJAX and the twitter-bootstrap-rails gem.
// The below must be included somewhere in in .js.erb file.
...
$('#bootstrap-flash').html("<%= j (bootstrap_flash) %>");
...