在 Rails 中,管理 Web 应用程序中的内容区域的最佳概念方法是什么? [英] What is the best conceptual approach, in Rails, to managing content areas in what is otherwise a web application?

查看:57
本文介绍了在 Rails 中,管理 Web 应用程序中的内容区域的最佳概念方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(不久前我读了这篇很棒的文章:http://aaronlongwell.com/2009/06/the-ruby-on-rails-cms-dilemma.html,讨论Rails CMS 困境".它描述了管理网站与 Web 应用程序内容的概念性方法. 我仍然是 Rails 的初学者,但有一点 PHP 背景,我仍然无法解决这个问题.

(A while back I read this great post: http://aaronlongwell.com/2009/06/the-ruby-on-rails-cms-dilemma.html, discussing the "Rails CMS Dilemma". It describes conceptual approaches to managing content in websites vs web apps. I'm still a beginner with Rails, but had a bit of a PHP background, and I still have trouble wrapping my brain around this.

我遇到的很多客户想要的网站不是 100% 网站,也不是 100% 网络应用程序......也就是说,也许有几页面向企业对公众的内容,但是然后是应用程序元素,整个整体外观应该是有凝聚力的.这在 PHP 中总是相当简单,因为您只是将应用代码放入 PHP脚本"等中(尽管我知道这个平台和方法有很多缺点).

A lot of what I run into is customers who want a website that is not 100% website, and not 100% web app... That is, perhaps there are several pages of business-to-public facing content, but then there are application elements, and the whole overall look is supposed to be cohesive. This was always fairly simple in PHP, as you just kind of dropped your app code into the PHP "script", etc (though I know there are plenty of cons to this platform and approach).

所以我想知道,Rails 中这样做的最佳方法是什么?

So I am wondering, what is the best approach in Rails for doing this?

假设您有一个带有用户身份验证和某种 CRUD 内容的应用程序,其中用户在项目或其他方面进行协作.那么,管理人们可能还想查看的本网站如何运作"和我们的公司"页面的文本/图像的最佳方法是什么?是否只是简单地有一个页面控制器和几个文本字段,后端有一个管理面板,可以让您编辑这些字段?或者从 Refinery 之类的东西开始,然后在它之上为网站的非内容驱动区域构建可能是一种常见的方法?

Say you have an application with user authentication and some sort of CRUD stuff going on, where users collaborate on projects or something. Well, what is the optimal approach for managing the text/images of the "How This Site Works" and "Our Company" pages, which people may also want to view? Is it just simply having a pages controller and several text fields, with an admin panel on the back end that lets you edit those fields? Or is it perhaps a common approach to start off with something like Refinery, and then build on top of it for the non-content-driven areas of a site?

对不起,如果这是一个愚蠢的问题.只是我读过 Hartl 的书和其他书,他们从来没有为初学者解决这些实用的低级内容......当然,我现在可以建立一个 Twitter 提要,但是 Twitter 的关于"页面(http://twitter.com/about)?我不能只是将文本放入视图中然后将其提供给客户...他们想要一种超级简单的方法来查看站点树、编辑内容区域以及管理/运行他们的 Twitter 提要或其他任何内容.

Sorry if this is a dumb question. It's just that I've read Hartl's book and others, and they never address this practical low-level stuff for a beginner... Sure, I can build a Twitter feed now, but what Twitter's "About" page (http://twitter.com/about)? I can't just throw text into a view and give that to a client... They want a super easy way to see the site tree, edit content areas, AND administrate/run their Twitter feed or whatever.

感谢您的帮助.

推荐答案

我认为您正在寻找一个在 Rails 应用程序中作为插件运行的 CMS.如果是这种情况,我建议您尝试 http://github.com/twg/comfortable-墨西哥沙发

I think you're looking for a CMS that runs as a plugin in your Rails application. If that's the case, I'd suggest that you try http://github.com/twg/comfortable-mexican-sofa

这篇关于在 Rails 中,管理 Web 应用程序中的内容区域的最佳概念方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆