8bitpal / hackful

Hackful is a platform inspired by Hacker News
MIT License
68 stars 18 forks source link

Signing out when not logged in raises exception #40

Open pbjorklund opened 12 years ago

pbjorklund commented 12 years ago

http://hackful.com/users/sign_out

RuntimeError in UsersController#show
Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id
8bitpal commented 12 years ago

Oh, thanks. Will have a look at that.

dsthode commented 12 years ago

Maybe this How-to could be applied to avoid collisions with the users route: https://github.com/plataformatec/devise/wiki/How-To:-Change-the-default-sign_in-and-sign_out-routes