Froze rails gems
[depot.git] / vendor / rails / actionpack / test / fixtures / test / update_element_with_capture.erb
diff --git a/vendor/rails/actionpack/test/fixtures/test/update_element_with_capture.erb b/vendor/rails/actionpack/test/fixtures/test/update_element_with_capture.erb
new file mode 100644 (file)
index 0000000..fa3ef20
--- /dev/null
@@ -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 %>