# 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
Article has a special field, username
which is the username of the User who posted the article. It's to avoid useless request.
{"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"}
def url_article return 'http://localhost:3000/show/' + self.title.to_s end
Used in _article_internal.html.erb and rss.rss.builder
Automcomplete Jquery plugin modified (separated with the jquery ui)
def url return 'http://localhost:3000/by/' + self.username end
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。