Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method error in signout process #188

Open
ybur-yug opened this issue Nov 29, 2014 · 0 comments
Open

Method error in signout process #188

ybur-yug opened this issue Nov 29, 2014 · 0 comments

Comments

@ybur-yug
Copy link

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 ybur-yug changed the title Method error in signout proces Method error in signout process Nov 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant