X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=vendor%2Frails%2Factionpack%2Ftest%2Ffixtures%2Ftest%2Fupdate_element_with_capture.erb;fp=vendor%2Frails%2Factionpack%2Ftest%2Ffixtures%2Ftest%2Fupdate_element_with_capture.erb;h=fa3ef200f9431a7b14f5db19a2a67c7d2173a380;hb=437aa336c44c74a30aeea16a06743c32747ed661;hp=0000000000000000000000000000000000000000;hpb=97a0772b06264134cfe38e7494f9427efe0840a0;p=feedcatcher.git 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 index 0000000..fa3ef20 --- /dev/null +++ b/vendor/rails/actionpack/test/fixtures/test/update_element_with_capture.erb @@ -0,0 +1,9 @@ +<% replacement_function = update_element_function("products", :action => :update) do %> +

Product 1

+

Product 2

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