https://github.com/unitech/vote-system
https://github.com/unitech/vote-system
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/unitech/vote-system
- Owner: Unitech
- Created: 2013-01-31T10:21:43.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-01-31T10:23:00.000Z (almost 13 years ago)
- Last Synced: 2025-02-10T05:23:38.573Z (11 months ago)
- Language: Ruby
- Size: 1.09 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NoctuaGUI
## environment.rb
# Allow Wall stream on main page
AJAX_LOAD = true
# Allow non registred user to vote
ANONYMOUS_VOTE = false
# Allow non registred user to comment
ANONYMOUS_COMMENT = false
## Database
Article has a special field, `username` which is the username of the User who posted the article. It's to avoid useless request.
# Help
## Fb
{"id"=>"581945270", "name"=>"Alexandre Strzelewicz", "first_name"=>"Alexandre", "last_name"=>"Strzelewicz", "link"=>"http://www.facebook.com/alexandre.strzelewicz", "username"=>"alexandre.strzelewicz", "location"=>{"id"=>"110774245616525", "name"=>"Paris, France"}, "gender"=>"male", "email"=>"alexnext@hotmail.fr", "timezone"=>2, "locale"=>"en_US", "verified"=>true, "updated_time"=>"2011-07-12T17:31:21+0000"}
# Specifics
## article.rb
def url_article
return 'http://localhost:3000/show/' + self.title.to_s
end
Used in _article_internal.html.erb and rss.rss.builder
## Autocomple
Automcomplete Jquery plugin modified (separated with the jquery ui)
## user.rb
def url
return 'http://localhost:3000/by/' + self.username
end