Skip to content

linuxnerd/ratab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

32ce0b5 · May 31, 2017

History

92 Commits
Jul 25, 2014
Feb 17, 2014
Jun 6, 2014
Jul 21, 2014
Jul 21, 2014
Feb 17, 2014
Jul 25, 2014
Feb 17, 2014
Feb 17, 2014
Jul 25, 2014
Jun 25, 2014
Feb 17, 2014
Jun 6, 2014
Jun 6, 2014
May 31, 2017
Feb 17, 2014
Feb 17, 2014

Repository files navigation

RA-TAB

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

安装

头像上传功能必须安装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_gridwill_paginate存在兼容性问题,paginate使用kaminari-bootstrap 0.1.3版本
  • ace theme使用Bootstrap2,因此kaminari-bootstrap 3.0.1无法使用。使用gems时可以使用linuxnerd/kaminari-bootstrap,这里是0.1.3版本

TODO

  • 通讯录管理

About

ratab template(admin & dashboards rails template)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published