I’ve never done authentication in rails, so please don’t be rigorous.
The first thought was to use restful_authentication plugin. Since I
found no api online, and all instructions said, I have to use
generator (which is not what I wanted - I already had a model and I
needed to integrate authentication in it), I decided to create an
empty project and to check out what code the generator puts in the
model and other files.
What I found, I didn’t like. User model contained a bunch of lines
with validators and other stuff. What I was looking for is one line,
And that’s it. Why mix plugin code with the model code? So, my
- Is there any manual or readme on how to integrate this plugin,
avoiding any generators, keeping as much code as possible out of /app
- If no, is it worth writing authentication thing from scratch?
Any useful suggestions are welcome.