When I say dead simple authentication, i mean dead freaking simple... When rebuilding my site i mostly just wanted to give a face lift and move away from Tumblr.

At first I thought, I'll just create posts in a text editor and then copy and paste them into the console. Can't be too bad right? Well this got old after the first post so I scaffolded (I know comaddox please don't hate me) but now I needed some way to make sure no one else could post.

With rails URLS it makes it extremely easy to guess i'm posting from something like "posts/new" so I needed some form of authentication. Entire Devise? No... I really don't need or want a user model, reset password and all of the other bloat that comes with devise. I mean I'm the only person who is ever going to post on here. Soo I went with the simplest solution possible.

Finally all i needed to do was have an easy way to set the cookie. I'm sure Chrome has a way to do this but I couldn't find it so i just downloaded the jQuery cookie library and now I run something like this into the chrome console:


comments powered by Disqus

Mike Silvis

Mikesilvis