Sha256: aa0f63da93b9d0e703b907212b67251fc05e27229b743209a6fbf37f14d9ea18

Contents?: true

Size: 702 Bytes

Versions: 12

Compression:

Stored size: 702 Bytes

Contents

<script type="application/javascript">
  // Flash handling
  $(document).bind('glow:flash', function(evt, flash) { console.log('glow flash'); $('#flash').text(flash.message); });
</script>

<p id="flash"><%= flash.map { |type, message| message }.join %></p>
<p><%= link_to 'redirect', action: :redirect, type: :notice, message: 'utf8: ✓' %></p>
<p><%= link_to 'rails ajax', {action: :ajax, type: :notice, message: 'rails ajax: ✓'}, remote: true %></p>
<p><%= link_to 'jquery ajax', '#', id: 'ajax' %></p>

<script type="application/javascript">
  $('#ajax').click(function(){$.get('<%= url_for action: :ajax, type: :notice, message: 'jquery ajax: ✓', format: :js %>'); return false;});
</script>

Version data entries

12 entries across 6 versions & 1 rubygems

Version Path
glow-0.0.16 spec/dummy/app/views/flash/show.html.erb
glow-0.0.15 spec/dummy/app/views/flash/show.html.erb
glow-0.0.14 spec/dummy/app/views/flash/show.html.erb
glow-0.0.13 test/rails3/app/views/flash/show.html.erb
glow-0.0.13 test/rails31/app/views/flash/show.html.erb
glow-0.0.13 test/rails32/app/views/flash/show.html.erb
glow-0.0.12 test/rails3/app/views/flash/show.html.erb
glow-0.0.12 test/rails31/app/views/flash/show.html.erb
glow-0.0.12 test/rails32/app/views/flash/show.html.erb
glow-0.0.11 test/rails3/app/views/flash/show.html.erb
glow-0.0.11 test/rails32/app/views/flash/show.html.erb
glow-0.0.11 test/rails31/app/views/flash/show.html.erb