in reply to href with data-method="delete"

hello,
I would suggest using something like the firefox HTTP live headers plugin while browsing the site, see what posts and gets are performed, and replicating that with your script. But, as marto referenced, WWW::Mechanize will not work with javascript. The only way I've gotten around it is by performing the actual GET that is performed instead of following a link.