aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/fixtures/test/update_element_with_capture.erb
blob: fa3ef200f9431a7b14f5db19a2a67c7d2173a380 (plain) (blame)
1
2
3
4
5
6
7
8
9
<% replacement_function = update_element_function("products", :action => :update) do %>
  <p>Product 1</p>
  <p>Product 2</p>
<% end %>
<%= javascript_tag(replacement_function) %>

<% update_element_function("status", :action => :update, :binding => binding) do %>
  <b>You bought something!</b>
<% end %>