ruby-science icon indicating copy to clipboard operation
ruby-science copied to clipboard

Method error in signout process

Open ybur-yug opened this issue 11 years ago • 0 comments

To reproduce:

  • clone repo

  • cd ruby-science/example_app

  • bundle && bundle exec rake db:migrate && bundle exec rails server

  • navigate to main page, create account, sign in, create survey

  • view surveys

  • click signout Error Produced:

    Routing Error
    No route matches [GET] "/sign_out"
    Try running rake routes for more information on available routes.
    

Running rake routes gets:

         sign_out DELETE /sign_out(.:format)                             clearance/sessions#destroy

for this instance, and if we grep out sign_out (the path that would be used for this) out....

    ➜  example_app git:(master) grep -r sign_out *
    app/views/shared/_header.html.erb:  <%= link_to 'Sign out', sign_out_path, method: :delete %>

As you can see, you use the delete method so I don't know what is causing the error, and have not had time to truly debug it.

ybur-yug avatar Nov 29 '14 22:11 ybur-yug