foundation / foundation-sites

The most advanced responsive front-end framework in the world. Quickly create prototypes and production code for sites that work on any kind of device.
https://get.foundation
MIT License
29.66k stars 5.48k forks source link

Off-canvas causes a link with data-method='delete' not to render a DELETE request properly on RoR #4939

Closed prakashsejwani closed 9 years ago

prakashsejwani commented 10 years ago

I have a link with data-method='delete' in the Off-canvas menu:

<aside class="right-off-canvas-menu">
  <ul class="off-canvas-list">
        <li><a href="users/sign_out" data-method="delete" rel="nofollow">Logout</a></li>
    </ul>
</aside>

To send a DELETE request, I'm using jquery-ujs( on Ruby on Rails ). When clicked on the link from the offcanvas, a GET request is sent. On the other hand, when I move the

averagegrod commented 10 years ago

I am still having issues with this too. It looks like Zurb was catching requests and then passing them off as a GET. This is an old post but it is still happening. https://github.com/zurb/foundation/issues/393

rafibomb commented 9 years ago

We added this to our "known issues" section in our planning board for the next version. A PR would be valuable to the community, otherwise It will be addressed then. You can see and vote on the proposed updates here: https://trello.com/b/QBPKlQqf/foundation-sites