官术网_书友最值得收藏!

Let's get started…

When you install the Rhodes framework, you get a new command-line tool. The Rhogen command simply creates this directory structure for us and populates it with some standard Rhodes code. Why do we need a tool to do this—why can't we just hack away in our favourite editor, creating the source for our application from scratch? Well, we could just hack. After all, a Rhodes application is just Ruby source code. But Rhogen also does a lot of magic behind the curtain to get our applications to work with a minimum of explicit configuration. To get this magic to work, Rhodes needs to find all the various components of your application. As we'll see later in this chapter, this means that we need to create a specific directory structure, and slot our written code into the appropriate places.

We will create a sample application for employee management to understand Rhodes. The employee application will help us to manage employee details by creating, deleting, and modifying an employee. We can filter this according to our needs. Does the world need an employee application? Nope, but that hasn't stopped hundreds of developers from writing one. Why should we be different?

More seriously, it will help us to explore many features of Rhodes development. We'll see how to create a simple page, link database tables, handle sessions, work offline, connect to other servers, push, create forms, and many more features.

主站蜘蛛池模板: 永平县| 漳平市| 昂仁县| 五原县| 汽车| 星座| 昌宁县| 招远市| 玉山县| 华安县| 连南| 永泰县| 彭山县| 六盘水市| 合作市| 佛坪县| 黄冈市| 阳东县| 安泽县| 大悟县| 阿拉尔市| 双鸭山市| 本溪| 博兴县| 定安县| 博野县| 平谷区| 奉化市| 霞浦县| 奉化市| 洪泽县| 喀喇沁旗| 旅游| 金沙县| 都昌县| 德保县| 博白县| 云安县| 清新县| 伊宁市| 望谟县|