Skip to content

Method error in signout process #188

@ybur-yug

Description

@ybur-yug

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions