X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/b8482ad1846436439b9ef3ba0ddcb3b42588d916..dc635b6d39be19a09a428282b6d639d029908df6:/README diff --git a/README b/README index 1c1f548..341ef6d 100644 --- a/README +++ b/README @@ -3,3 +3,23 @@ Contributors to Selectricity Include: * Benjamin Mako Hill * John Dong * Justin Sharps + +07/31/07 +jlsharps: I've added a user authentication system known as +"acts_as_authenticated" to the code. The plugin is the the vendor/plugins +directory. The two most noticeable changes are the AccountController and a +redone User model. I've left the UserController in place for now, but the +AccountController works in a different manner, so am switching over to that +gradually. I saved the 5 lines or so in the old User model, overwrote +it with the authenticated generator and then recopied the old stuff back in: +has_many :elections and the name() method. The generator also creates its own +migration file, but since we are using a create.sql file I adopted the +migration file into a new users table in the create.sql file. I have yet to +delete the old table because I haven't fully combed through the code yet and +determined how many of the old attributes (such as first_name, last_name) may +need to be retained. +http://technoweenie.stikipad.com/plugins/show/Acts+as+Authenticated is the +best site for documentation regarding acts_as_authenticaed. Also, currently +it only stores the user_id in the session, but i just found a guide to help +me make it store the entire user object, so I'll do that while my battery +charges. \ No newline at end of file