Aja*_*jay 10 gem blogs ruby-on-rails redcloth
我需要一个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)
Run Code Online (Sandbox Code Playgroud)
我通过了Gems:
- "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).
Run Code Online (Sandbox Code Playgroud)
Ric*_*eck 20
以下是您可能从中受益的更多资源:
教程
宝石
博客
如果我要创建一个简单的博客应用程序,我会这样:
创建Post,Category,Tag,Comment,Image模型
在路线中使用Slugalicious来路由到包含以下路线的帖子: domain.com/blog/your-post-title
添加管理区域(可能使用ActiveAdmin || RailsAdmin),但您可能希望使用本教程创建自己的区域
我会使用WYSIWYG(例如Redactor)在管理区域中创建帖子.看看Petekun的帖子,我建议采用降价格式结构(保持一切干燥)
使用CanCan确定哪些用户角色可以写评论等
可以使用Paperclip或Carrierwave上传图像
| 归档时间: |
|
| 查看次数: |
15702 次 |
| 最近记录: |