Rails常用插件

2019-03-27 01:04|来源: 网路

测试驱动

 

权限认证

增加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

 


转自:http://www.cnblogs.com/scige/archive/2012/12/10/2812093

相关问答

更多
  • 楼上那个是验证规则jquery插件还不错,还有 弹出层插件 jquery dialog 插件,弹出层 模式窗口,对话框,提示框,很好用。
  • 。 1. 安装 Vetur 插件 2. 在 VS Code 的设置中添加如下规则: { "vetur.format.defaultFormatter": { "html": "prettier", "css": "prettier", "postcss": "prettier", "scss": "prettier", "less": "prettier", "js": "prettier", "ts": "prettier", "stylus": "stylus-supremacy" } } 这里是设置 ...
  • 1. NGUI,这个不用多说,上官网: 2. FingerGestures,顾名思义,这个是支持移动设备所有触摸事件的插件,包括点击,滑动,还有自定义手势等等, 3. EasyTouch,也是用于移动平台上的RPG类的游戏,这里有篇文章,简单介绍了一下该插件 4. ShareSDK,功能强大的分享插件,支持一键分享并且配置起来十分简单,目前绝大多数的社交软件都支持,并且他们官方的文档写得特别清楚而且如果注册用户的话,还会有技术支持,官方文档: 5. AndroidRemote,这个主要用于安卓平台和电脑联调 ...
  • 我见过的最棒的是Devise 。 你也可以尝试authlogic ,但我建议第一个。 与康肯这样的授权宝石一起使用会让您的生活更轻松。 这里的第209集关于设计 (也检查210更多定制) 我遵循本教程在cancan和devise之间进行了组合,并且它“像这样”(也是该教程的第2部分 ) the best i've seen do far is Devise. You could also try authlogic, but i'd recommend the first one. Used with an ...
  • 一些平台插件通过ImageDescriptor使(某些)图像可用。 不幸的是,所有方式都略有不同。 平台UI - org.eclipse.ui 此插件定义了ISharedImages公共使用的ISharedImages 。 要获取图像描述符,请查询工作台的图像注册表,如下所示: PlatformUI.getWorkbench().getSharedImages().getImage( ISharedImages.IMG_OBJ_FILE ); IDE - org.eclipse.ui.ide IDE插件将 ...
  • 在Rails中,大多数插件通常以宝石形式实现。 从上面的链接: 宝石是一个打包的Ruby应用程序或库。 它有一个名称(例如rake)和一个版本(例如0.4.16)。 我会这样做。 Gem是迄今为止创建功能的最常见方式,您希望存在于多个应用程序中。 另外: 如何制作自己的宝石 Ok, since the time I asked the question, a friend pointed me in a direction. As a plugin, I wanted it to be able to pu ...
  • 也许这会有所帮助: http : //github.com/bcardarella/decoder Maybe this would help: http://github.com/bcardarella/decoder
  • Cancan是较小网站的重量较轻的插件。 您可以在railscast上看到视频。 http://railscasts.com/episodes/192-authorization-with-cancan 我在几个项目中使用了declarative_authorization和authlogic / restful_auth。 它拥有您需要的一切。 1)模型安全性。 2)控制器安全性3)视图可用于检查身份验证的方法。 我在declarative_authorization中遇到的唯一令人沮丧的事情是我没有阅读 ...
  • 我不确定这是否仍然保持,但看起来有很多分叉,如果不是: http://github.com/courtenay/altered_beast I found some looking through google results https://github.com/tog/tog/wiki/developer-faq http://communityengine.org/documentation.html Hope it help others.
  • Rails 3有一个发电机。 根据插件的其余部分,您可能需要进行修改才能使Rails 3兼容。 您可以像这样运行生成器: rails generate ... Rails 3 has a generator. Depending on the rest of the plugin though you might have to make modifications to make it Rails 3 compatible. You can run the generator like this: ra ...