Skip to content

Latest commit

 

History

History
53 lines (46 loc) · 1.61 KB

README.md

File metadata and controls

53 lines (46 loc) · 1.61 KB

RA-TAB

管理系统基本功能框架,可在此基础上扩展业务功能。

安装

头像上传功能必须安装ImageMagick,安装方法:

如果是ubuntu

sudo apt-get install imagemagick

如果是mac osx,使用Homebrew安装

brew install imagemagick

部署application

git clone [email protected]: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 # 创建一个管理员用户[email protected]/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_gridwill_paginate存在兼容性问题,paginate使用kaminari-bootstrap 0.1.3版本
  • ace theme使用Bootstrap2,因此kaminari-bootstrap 3.0.1无法使用。使用gems时可以使用linuxnerd/kaminari-bootstrap,这里是0.1.3版本

TODO

  • 通讯录管理