Rails框架技术讲座:值得一看的文字编辑器widgEditor

Posted by cnruby Mon, 10 Jul 2006 21:10:00 GMT

Rails框架技术讲座:值得一看的文字编辑器widgEditor

目录

 (一)系统环境:

  1. Ruby 语言 1.8.4版本, 点击这里Ruby1.8.4
  2. Rails 框架 1.1.2版本
  3. Windows XP 或者 Windows 2000操作系统 或者 Linux操作系统
  4. 需要一个浏览器,如FireFox1.5.0.1
  5. 开发编辑工具 Notepad2 ,安装方法请单击这里
  6. 下载软件 wget ,安装方法请看这里
  7. DOS解压软件 7za ,安装方法:(a)解压;(b)把文件7za.exe放到<RUBY_HOME>/bin。

 (二)前提条件:

  1. 在本机Winodw操作系统上,我们的工作目录为d:\works_rails。
  2. 你的电脑必须在线。

 (三)目的:

  1. 介绍一个文字编辑器widgEditor,它可以以最灵活和方便地被集成到Rails框架应用软件中去。
  2. 我们创建项目的完整代码 widgEditor_use.zip

 (四)解决方案:

  1. 创建一个名称为 widgEditor_use 项目,其命令如下:
    rails widgEditor_use
    cd widgEditor_use
  2. 下载安装软件install-widgEditor.exe,并存放在目录d:\works_rails\widgEditor_use:
    install-widgEditor.exe d:\works_rails\widgEditor_use
    这样就完成了下载和安装widgEditor工作。
  3. 利用下面的Rails框架命令,创建一个控制器AdminController和一个页面。
    ruby script\generate controller admin index
  4. 再作文件index.rhtml代码修改。
    notepad2 app\views\admin\index.rhtml
  5. 在DOS-Shell中输入如下命令,启动网络服务器WEBrick:
    ruby script\server
  6. 在浏览器的地址栏中输入下面网址,你就可以看到一个文字编辑器:
    http://localhost:3000/admin/index

 (五)视听教学:



 ()必须注意的问题:



 (七)参考资料:

  1. 文字编辑器widgEditor首页:
    http://www.themaninblue.com/experiment/widgEditor/
  2. 文字编辑器widgEditor软件:
    http://www.themaninblue.com/experiment/widgEditor/widgEditor.zip
  3. DOS下载软件wget首页:
    http://www.rahul.net/dkaufman/
  4. DOS解压软件首页:
    www.7-zip.org

Posted in  | Tags  | no comments | no trackbacks

Trackbacks: 0

Use the following link to trackback from your own site: http://www.hhtong.com/blog1/articles/trackback/988

Comments: 0

Leave a response | RSS feed for this post

Leave a response

Toggle website and email fields