2014-01-09 35 views
8

我需要一个用于在我的rails应用程序中创建博客的gem。 我们可以编写一大堆代码,但对于这个小任务来说,有效的Gem更可取。 请提出一个很好的创业板创建支持以下功能博客:用于在Rails应用程序中创建全功能博客的Gem

- "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). 
+0

http://stackoverflow.com/questions/14374399/rails-blog-engine – Muntasim

+0

可能的[Rails应用程序的Blog引擎]的重复(http://stackoverflow.com/questions/1807670/blog-engine-for- rails-application) – Robin

回答

19

这里有一些您可能从中受益的更多资源:

教程

宝石


博客

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

  1. 创建PostCategoryTagCommentImage模型

  2. 使用Slugalicious的路线路由到帖子中包含路线:domain.com/blog/your-post-title

  3. 添加一个管理区域(可能与ActiveAdmin | | RailsAdmin),但你可能希望与this tutorial

  4. 我会使用一个所见即所得(如Redactor),用于创建在管理方面的文章中建立你自己的。综观Petekun的帖子,我建议你去为降价格式结构(保持样样都干)

  5. 使用CanCan,以确定哪些用户角色可以写评论等

  6. 图像可以与PaperclipCarrierwave

    上传
+0

给出的前两个链接无法访问 – autopoietic

+2

我认为CanCan已被弃用并替换为CanCanCan – Artem

2

假设你已经有一个应用程序准备好了,想添加一个非常:

- 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) 

我通过像宝石了尽可能快的尽可能少的“博客”,

如果你只是想要一个下拉,但相对较重,解决方案,请上网:

(来源:A clean minimal gem to add a simple blog to existing app? [closed]

1

你需要的是https://github.com/jipiboily/monologue。它的一颗宝石可以满足您的所有需求。要覆盖来源,只需将内容复制到您的Rails应用程序文件夹。从而可以使用自己的风格和逻辑。

相关问题