3 ms·
This looks really interesting. I've been building a Rails app with Restful Authentication, and while it's a lot better than writing everything myself, it's pre
by theBobMcCormick 18y ago
This looks really interesting. I've been building a Rails app with Restful Authentication, and while it's a lot better than writing everything myself, it's pretty kludgy in a lot of ways, the most obvious of which is that the whole thing is a big generator. Which means that, as near as I can tell, once you've written your application with Restful Authentication, there's no easy way to upgrade your application to later versions of Restful Authentication.
- trevorturk 18y agorestful_auth is actually a bit of a hybrid. So, there are some shared libraries that do a lot of the heavy lifting, and then a bunch (too much?) generated code that gets put into your project directly. Lately, I've found myself pulling the restful_auth plugin out of my app and seeing what breaks. Then, I'll grab the stuff that's necessary and put it into my lib directory. This helped me figure out exactly what was going on and why. Finally, I trimmed out the stuff that I didn't want. I feel better about knowing what's going on that way, because it is a bit confusing. I'd certainly say neither solution is perfect, but I still prefer restful_auth approach because it seems more... I don't know... straightforward? Still, the situation could stand for further improvement :)