Skip to content

Commit

Permalink
more named scope applications, plus notes of what to do next
Browse files Browse the repository at this point in the history
  • Loading branch information
baccigalupi committed Mar 21, 2009
1 parent 5990bd7 commit 4728074
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/csser.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class Csser < Application
def index
@issues = Issue.all(:conditions => {:status => 'approved'})
@issues = Issue.approved
render
end
end
2 changes: 1 addition & 1 deletion app/controllers/issues.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Issues < Application

# GET /issues
def index
@issues = Issue.find(:all)
@issues = Issue.approved
display @issues
end

Expand Down
3 changes: 3 additions & 0 deletions app/models/congressional_data/bill.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ class Bill < ApiData
has_and_belongs_to_many :issues, :select => 'issues.*',
:join_table => "billtrack_member#{ self.table_environment }.bill_issues",
:conditions => 'issues.status = "approved"'

named_scope :only, :conditions => {:type => nil}
#named_scope :by_popluarity, :include => :bill_issues, :order => ""

# INSTANCE_METHODS =======================================
# text_helpers -----------
Expand Down
23 changes: 23 additions & 0 deletions research/TODO.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
- Get email working on the server

- Allow issue registration
- notification system
- scraping for actionable events, senate and house bill approval

- Contact politicians interface

- Member politician details/signup process

(until this is done should make all issues approved?)
- Admin interface for Issue approval
- merge issues
- categorize/nest issues
- automatic upgrade of users who suggest X number of valid bill_issues
- Admin interface for members
- disable spammers
- enable other administrators

- Bring news into bills for better information allowing better bill_issues

- autocompletion for bill_issues form, on comma

0 comments on commit 4728074

Please sign in to comment.