管理系统基本功能框架,可在此基础上扩展业务功能。
头像上传功能必须安装ImageMagick,安装方法:
如果是ubuntu
sudo apt-get install imagemagick
如果是mac osx,使用Homebrew
安装
brew install imagemagick
部署application
git clone git@github.com:linuxnerd/ratab.git
cd ratab
bundle install
cd config
cp config.default.yml config.yml # 将参数修改成自己的参数(注意修改faye token)
bundle exec rake db:schema:load
bundle exec rake db:seed # 创建一个管理员用户admin@g.com/qwe123
注意修改config/environments
下各环境的邮箱配置,用来发送忘记密码邮件
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
#:domain => '<your domain>',
:user_name => 'your email',
:password => 'your password',
:authentication => 'plain',
:enable_starttls_auto => true
}
- 用户基本管理(注册、登陆、修改个人资料、修改密码、忘记密码等)
- 基于
faye-rails
的实时通知系统,直接操作Notification模型即可 - 基本的国际化
- 基于
spreadsheet
的导出到excel的功能 - 基于
carrierwave
的头像上传功能
wice_grid
与will_paginate
存在兼容性问题,paginate使用kaminari-bootstrap
0.1.3版本- ace theme使用Bootstrap2,因此
kaminari-bootstrap 3.0.1
无法使用。使用gems时可以使用linuxnerd/kaminari-bootstrap
,这里是0.1.3版本
- 通讯录管理