daqing / rabel Goto Github PK
View Code? Open in Web Editor NEWAn open-source web forum built on the Ruby on Rails framework.
License: Other
An open-source web forum built on the Ruby on Rails framework.
License: Other
如果没有帖子的情况下打开 localhost:10000/topics 会 500服务器内部错误。
undefined method `current_page' for []:
因为在cached_pagination 方法中返回了 [].
return Rabel::Model::EMPTY_DATASET unless ts.present?
改为
return Kaminari.paginate_array(Rabel::Model::EMPTY_DATASET).page(0) unless ts.present?
则不报错。
user和account为何分离设计?能讲讲思路么?
开始我还想试试自己升级,然后看到了分支里已经有了4.1,而且我试着 测试通过了,然后页面也都可以,那为什么master分支还是老版本,为了兼容? 还是4.1版本还有些许bug?
目前论坛的首页,就是帖子列表,但是很多情况下,首页应该是介绍性质的内容,然后引导用户进入帖子列表。
每个讨论,可以选择多个 tag。tag 只要管理员预先设定,不需要用户填写。
用户只要选择几个 tag 就行了。
目前的方式,不太适应未来组件化的需求,所以需要重新设计后台布局。
Rabel › 500: Internal Error
安装完成后在哪里发帖啊?
话说看了代码后,自己先新建一个节点,然后在浏览器中输入
http://localhost:10000/topics/new?node_id=1
打开了新建帖子的页面。
Magick::ImageMagickError (unable to read font /usr/local/opt/ghostscript/share/ghostscript/fontsx/n021023l.pfb' @ error/annotate.c/RenderFreetype/1123:
(null)'):
lib/rabel/captcha.rb:20:in annotate' lib/rabel/captcha.rb:20:in
block in image'
lib/rabel/captcha.rb:19:in each_char' lib/rabel/captcha.rb:19:in
image'
app/controllers/welcome_controller.rb:30:in block (2 levels) in captcha' app/controllers/welcome_controller.rb:27:in
captcha'
1,ghostscript,2,freetype,3,ImageMagick 是按照顺序用homebrew安装的。在注册的时候,就是出现验证码的时候,就出现了这个问题。
就行 Wordpress 那样,安装以后,自动生成一篇默认的博客文章。
否则,在开启 CDN 的网站上就没法注册,因为验证码被缓存了。
这条 commit 的改动: 6efad4b
目前已经支持手工发放积分(在后台『奖励记录』可以看到),接下来需要支持的是:
以上积分数量都可以在后台配置。
用户可以自己设定 locale
software is kind of weird
这两天看了看Rabel,发现Devise还是2.2.3版。建议新版使用最新版的Devise。
您好,我之前使用论坛的教程能一气呵成的安装好这个程序,
但是现在,我从这个礼拜开始断断续续的在ubuntu或CentOS下面使用论坛提供的教程安装此程序。经过最少上十次的安装,且每次安装我都会重装系统。但是还是无法安装好。
vps是阿里云的。我开始以为是阿里云的问题,于是我购买了一个国外的vps,重新用ubuntu和centos 安装,结果也是一样,无法安装好。
为了更方便的发帖,需要做两个修改:
最近在看 Docker,是个很不错的部署方案。希望能集成到 Rabel,实现“一键部署”
这样的话,就可以把论坛用户集成进其他系统,实现论坛帐号的单点登录。
在目前情况下,很容易遭受 Spam 攻击(burp suite),比如发帖机,注册机等。所以要有入侵检测机制。
里面有这个统计字段吗?
不知为何,我访问注册页面时提示
ActionView::MissingTemplate at /users/sign_up
Missing template registrations/new with {:locale=>[:zh], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :slim, :coffee, :haml]}
我加了full text search
这是把 Rabel 变成组件化结构的第一步。先默认集成一些组件,然后拆分出去,做成单独的 engine。
在新的模板中,忘记调用自定义 logo。
测试发现土豆视频连接中偶尔会有“_”下划线出现(例如:gU_6UsaTn5g
),导致当前版本的smart_url识别出错。
两层结构太复杂了,只要一个简单的分类功能就行。
现在给管理员的权限有些大,要是开放给外部用户的话风险性太大了。不知道能不能加上类似版主的权限机制(只能在某个节点下删除主题一类的)
可以看到为了方便安装、配置,提取出来许多 shell 脚本,可是……
app/assets/stylesheets/i_mobile.css.erb
里有个不存在的 requireconfig/environments/production.rb
里的 memcached 配置是从全局变量里读取,但没有 fallback 的这版本机制略坑爹啊,在仓库里放着压根看不出 1.6 是 alpha,还以为是老版本的升级呢。
莫非我得直接升级到 2.0?或者 master?
一定时间内,只能发表一定数量的话题,用来防止 spam flood.
我想把用户名/设置/登录等放在一个下拉菜单里面,看到了类似使用bootstrap的方法,但是在rabel里面跑起来只是竖排的链接列
https://gist.github.com/1655316
只要完成基本的转换就行:
这样就可以把 dz 网站迁移到 rabel。
节点就没有层次之分了,变成类似 tag 的作用。跟 tag 不同的是,节点是管理员内置的,用户没法创建。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.