Added some minor TODO's for increased user funcitonality. Change email, beautify...
[selectricity-live] / NOTES
1 ===============================================
2 === Log =======================================
3 ===============================================
4
5 07/31/07
6 jlsharps: I've added a user authentication system known as
7 "acts_as_authenticated" to the code. The plugin is the the vendor/plugins 
8 directory. The two most noticeable changes are the AccountController and a 
9 redone User model. I've left the UserController in place for now, but the 
10 AccountController works in a different manner, so am switching over to that 
11 gradually. I saved the 5 lines or so in the old User model, overwrote 
12 it with the authenticated generator and then recopied the old stuff back in: 
13 has_many :elections and the name() method. The generator also creates its own 
14 migration file, but since we are using a create.sql file I adopted the 
15 migration file into a new users table in the create.sql file. I have yet to 
16 delete the old table because I haven't fully combed through the code yet and 
17 determined how many of the old attributes (such as first_name, last_name) may 
18 need to be retained. 
19 http://technoweenie.stikipad.com/plugins/show/Acts+as+Authenticated is the 
20 best site for documentation regarding acts_as_authenticaed. Also, currently
21 it only stores the user_id in the session, but i just found a guide to help 
22 me make it store the entire user object, so I'll do that while my battery 
23 charges.
24
25 08/03/07
26 Handy trick: use the command 'gem_server' from a shell to create a server at 
27 http://localhost:8008 that is an easy to navigate locally-hosted website with 
28 all the documentation on local gems you have in a easy to read format.
29
30 jlsharps: I added the Gruff plug-in today, which is viewable under the folder
31 vender/plugins/gruff.  I installed it directly using the Gruff plug-in and
32 included controller generate utility. The version 0.1.2, which doesn't seem to
33 be the latest version. I've looked into it and it see and it seems that the
34 latest version is 0.2.8. However, I wasn't sure how including a gem w/o a plugin 
35 would function in end-game rails so I just what I used for now. If you guys 
36 (mako of john) know how to do it, it'd probably be better to upgrade, but it 
37 didn't seem like the best use of my time right now.  I got the plug-in here:
38 http://topfunky.net/svn/plugins/gruff. You can get the gruff gem v 0.2.8 by 
39 typing "sudo gem install gruff", I believe it's also hosted on RubyForge. 
40
41 I created the GraphsController for Gruff methods to use. In Pollarize I put them 
42 in the ApplicationContorller file, so they would be accessible to all. While 
43 that it also an option here, it would also mean there wouldn't be much room for 
44 playing around because everything in the Application file has to be perfect or 
45 it seems to throw Error Code 500 (basically everything breaks). The show() 
46 is a sample sample provided with Gruff. 
47
48 Documentation is here:http://gruff.rubyforge.org/  Alternately, if you have the 
49 gem installed, you can use the ri command, or the above mentioned gem_server. 
50
51 If you guys want more helpful stuff here, let me know.
52
53 =

Benjamin Mako Hill || Want to submit a patch?