search for: handlemethod

Displaying 1 result from an estimated 1 matches for "handlemethod".

Did you mean: handlermethod
2010 May 31
0
Rails 3 UJS and delete action
Hi, I ve got a question concerning delete actions in the new rails 3 world with unobtrusive javascript. How may I perform an "ajax" delete in a list of products. if attribute data-method is specified rails.js handleMethod is called, which adds csrf params into a hidden form and form.submit is called. Works great, but form.submit is nt performed as an ajax request. Using data-remote instead of data-method would nt add csrf params. What s the best approach to achieve what I need? Thanks a lot in advance. -- Volker...