Arun kant sharma
2014-Mar-08 14:32 UTC
[Devise] redundant use of method: :delete while using destroy_user_session_path
While using devise I have to use %li= link_to "Sign up", destroy_user_session_path, method: :delete now that destroy_user_session_path should automatically default to delete method because that's how it is defined in routes. Why is it generate links to get method for default for given path? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5259908f-2d51-4393-8950-7448ccde2ca7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Apparently Analagous Threads
- Rails with Angular and Devise
- Modelling multiple types of users with Devise and Rails 4
- Controller Testing + Devise = boom (undefined @controller, request)
- Devise is causing the [The change you wanted was rejected.] Error...
- Devise + Forem: undefined method weeks on Fixnum