blob: 2d2ac84214662cacb85935debe2d3e3bbb176aa8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
<% replacement_function = update_element_function("products", :action => :replace) do %>
<p>Product 1</p>
<p>Product 2</p>
<% end %>
<%= javascript_tag(replacement_function) %>
<% update_element_function("status", :action => :replace, :binding => binding) do %>
<b>You bought something!</b>
<% end %>
|