<mako@atdot.cc> [Tue, 7 Aug 2007 23:23:05 +0000 (19:23 -0400)]
Modified QuickVote table to work by object type and not by the weird
TinyInts so that we can take advantage of the single table inheritence
magic in AR.
The user model has been modified so that it stores the user object itself in the session[:user]. Session[:user_id] fulfills the purpose of holding the specific id. the test files were also modified to account for the changes. In addition, a couple lines in the SiteController#index method were updated tp utilize new funtionality of ActiveRecord. The changes I made to the Authenitcated user library is available here:http://technoweenie.stikipad.com/plugins/show/Storing+the+User+Model+in+the+Session.
Changed the Selectricity header into a link, and modified the config/routes.rb file to include a new named route: "graph." Use graph_url syntax to call a Gruff method from the graphs controller. Currently about to troubleshoot the user system.
Modified the methods in graphs controller so they would work for Selectricity, but can't get them to successfully display yet. It seems that the 'url_for' helper might not be able to handle a :controller an argument. It doesn't throw an error, just displays nothing. I also removed various deprecated methods and replaced them with their updated counterparts in site_controller, and in some of the views. In addition I modified the confirm method in the QuickVote controller to save the time of the vote. I also changed what the voter.ip was logging because it wasn't working. Currently it says request.env["BLAH"] because I'm trying to vote multiple times in the same election for testing (not sure that jsut cahgnign the ip save feature is allowing that) but it will have to be request.env["REMOTE_ADDR"] in the long run. This is on line 108 of the QuickVote controller.
Well, it seems I forgot to add the acts_as_authenticated to the repository on my last commit, but they're there now. Also, I recently added the Gruff graphing plugin, and created a new controller for the graphs, with a method I ported from pollarize to chart how many people have voted per day. The basic_login page works, and the create user sstem works, but is unpolished and still points to a poem as the index page, so if you read a poem, it's supposed to happen. The quickvote creation from the homepage is NOT working however, and is about to be investigated. I'm not sure how much else isn't working. I noted details abotu acts_as_authenticated adn Gruff in the README.
I have added the acts_as_authenticated plugin to code, and have gotten VERY BASIC functionality. This isn't my last addition fortoday but I wanted to commit before my battery died. A lot of the detailed documentation about where to find help with acts_as_authenticated is in the README, the website is here :http://technoweenie.stikipad.com/plugins/show/Acts+as+Authenticated. The acts_as_authenitcated generator also heavily modifed the user class (model) but I kept theo original lines as well. I havne't begun tothrow anyting out yet, because im using it as a refernce to get the new system running.
In the process, I had to completely gut the login engine which means
that parts of the site that require logins will not work at all. This
should be fixed ASAP.
<mako@atdot.cc> [Thu, 12 Oct 2006 13:40:47 +0000 (09:40 -0400)]
Made a large number of mostly cosmetic fixes after a detailed
run-through of quickvotes. Also added support for tracking IP addresses
into the database.
<mako@atdot.cc> [Wed, 11 Oct 2006 05:34:23 +0000 (01:34 -0400)]
Added initial support fo QuickVotes. There is support for the creation
of quickvotes in the database. There is not yet support for voting in
quickvotes.
* Contiue with upgrade to Rails 1.1
* Large variety of fixes to various bits and pieces.
* Rudimentary (and broken) support for email in two different areas.
* Much improved list screen for elections.
* Initial voter-based interface based around tokens.
* New uniq_token regenerating library.
Left things a little bit unstable including:
* uniq_token should be refactored to provide only a class method.
* voter list review page is unwritten
* rankings are committed to the database but some sort somewhere seems
to be botching things.
Initital scaffolding of the website plus initial work on the adding and
editing general information for votes and list of candidates. The first
steps toward importing voters has also been added.