I'm not sure you are using the same functionality, as button_to in Ruby on Rails. These two implementations is completely different.

> This seems to duplicate functionality from #582.
My code is executing only if "data" is hashref.