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

前端之家收集整理的这篇文章主要介绍了ruby-on-rails – 用于在Rails应用程序中创建全功能博客的Gem前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我需要一个gem来在我的rails应用程序中创建一个Blog.
我们可以编写一大堆代码,但对于这个小任务,有效的Gem更可取.
请建议一个好的Gem用于创建支持以下功能博客: @H_301_4@- 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)

我通过了宝石,如:

@H_301_4@- "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上传

原文链接:https://www.f2er.com/ruby/271335.html

猜你在找的Ruby相关文章