Rails常用插件

测试驱动

 

权限认证

增加super devise

rails generate devise:install

rails generate devise Super

rails generate devise:views supers

 

前端框架

sass + bootstrap + compass + bootstrap-sass

1.new file: app/assets/images/glyphicons-halflings-white.png
2.new file: app/assets/images/glyphicons-halflings.png
3.modified: app/assets/javascripts/application.js

    +//= require bootstrap
4.new file: app/assets/stylesheets/custom.css.scss

    $iconSpritePath: image-path('glyphicons-halflings.png');
    $iconWhiteSpritePath: image-path('glyphicons-halflings-white.png');

    @import "bootstrap";
    @import "bootstrap-responsive";

 

MongoDB

 

Redis

 

Rails Search

  • Sunspot    使用solr,基于Lucene构建,需要Java环境
  • Thinking-sphinx    使用sphinx
  • Tire    使用elasticsearch,基于Lucene构建,需要Java环境

 

部署

 

已使用

awesome_nested_set接口介绍

https://github.com/collectiveidea/awesome_nested_set/wiki/Awesome-nested-set-cheat-sheet

pry-debuger

在~/.pryrc中加入以下快捷方式

Pry.commands.alias_command 'c', 'continue'
Pry.commands.alias_command 's', 'step'
Pry.commands.alias_command 'n', 'next'
Pry.commands.alias_command 'f', 'finish'

 

未使用

 

富文本编辑器

1. KindEditor

界面很简洁,很不错

2. CKEditor

https://www.ruby-toolbox.com/projects/ckeditor

功能很强大,很易用

3. TinyMCE

https://www.ruby-toolbox.com/projects/tiny_mce

 

posted @ 2012-12-10 22:11  scige  阅读(1261)  评论(0编辑  收藏  举报