ruby-on-rails – 用于在Rails应用程序中创建全功能博客的Gem

我需要一个gem来在我的rails应用程序中创建一个Blog.
我们可以编写一大堆代码,但对于这个小任务,有效的Gem更可取.
请建议一个好的Gem用于创建支持以下功能的博客:
- Adding static  Blog contents. 
- Feature to have image in blog
- Visitor/Viewer must be able to comment/share the blog 
 ( will be much nicer if can be commented/shared via Facebook account)

我通过了宝石,如:

-  "Redcloth" (for creating static web pages quickly; quite unsure 
    will it be able to handle image & comment facility. )
-  Gem "dynarex-blog" (for creating blog,but unable to find 
   good tutorial / proper documentation for integrating it with my Application).

解决方法

以下是您可能从中受益的更多资源:

教程

> How to build a blog in Rails 4
> Rails Blog Tutorial
> Simple Backend Area

宝石

> CanCan(管理员授权能力)
> Slugalicious(针对slu slu的路线)
> Redactor(所见即所得)
> Paperclip(图片上传)

博客

如果我要创建一个简单的博客应用程序,我会这样:

>创建帖子,类别,标签,评论,图像模型
>在路线中使用Slugalicious来路由到包含以下路线的帖子:domain.com/blog/your-post-title
>添加管理区域(可能是ActiveAdmin || RailsAdmin),但您可能希望使用this tutorial创建自己的区域
>我将使用WYSIWYG(例如Redactor)在管理区域中创建帖子.看看Petekun的帖子,我建议采用降价格式结构(保持一切干燥)
>使用CanCan确定哪些用户角色可以写评论等
>图像可以使用PaperclipCarrierwave上传

相关文章

validates:conclusion,:presence=>true,:inclusion=>{...
一、redis集群搭建redis3.0以前,提供了Sentinel工具来监控各...
分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣...
上一篇博文 ruby传参之引用类型 里边定义了一个方法名 mo...
一编程与编程语言 什么是编程语言? 能够被计算机所识别的表...
Ruby类和对象Ruby是一种完美的面向对象编程语言。面向对象编...