aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/fixtures/test/update_element_with_capture.erb
diff options
context:
space:
mode:
Diffstat (limited to 'actionview/test/fixtures/test/update_element_with_capture.erb')
-rw-r--r--actionview/test/fixtures/test/update_element_with_capture.erb9
1 files changed, 9 insertions, 0 deletions
diff --git a/actionview/test/fixtures/test/update_element_with_capture.erb b/actionview/test/fixtures/test/update_element_with_capture.erb
new file mode 100644
index 0000000000..fa3ef200f9
--- /dev/null
+++ b/actionview/test/fixtures/test/update_element_with_capture.erb
@@ -0,0 +1,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 %>