zurb/foundation-rails — Issue #17: Foundation js produces "uncaught exception: Syntax error, unrecognized expression: after" on DELETE method
Author: mansus
Created: 2011-12-23 10:47:51+00:00
State: open

I am using Rails 3.1 + Devise,

I have a sign out link that uses DELETE (as specified in devise)
<%= link_to('Logout', destroy_user_session_path, {:method=>'delete', :class => "small round white button"} ) %>

After including //= require foundation in my application.js, that link has stopped to work properly giving

- the following js error:
Syntax error, unrecognized expression: after

- and rails routing error:
No route matches [GET] "/users/sign_out"

I believe that jquery_ujs.js (also included in application.js) is responsible of "transforming" the request in a DELETE request, so I guess that foundation.js is not letting it make its work...