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

Benjamin Mako Hill || Want to submit a patch?