天天红玉世界

Rails Ruby Erlang 。。。创新来自于刻苦的实践和勤奋的思考... www.hhtong.com

www.lycom.de

Rails实例世界(No 1):可视化路由工具vasco

Gudao Luo2008-11-16 at 06:49发表的

可视化路由工具vasco

  • 安装前提条件:
    • ruby version 1.8.6
    • gem version 1.3.1
    • rails version 2.1.2
    • git version 1.6.0.1
使用可视化理由工具vasco基本方法
rails demo_vasco && cd demo_vasco
 
ruby script/plugin install git://github.com/relevance/vasco.git
或者
cd vendor/plugins/ && git clone git://github.com/relevance/vasco.git && cd ../..
 
ruby script/generate scaffold post title:string body:text published:boolean
 
rake db:migrate
 
rake vasco:explore
 
ruby script/server
 
http://localhost:3000/vasco
  • 说明
    • 在Mac OS X上使用上面所说的方法一切正常
    • 在Debian Sarge 3.1 Server上使用上面所说的方法,在使用命令“rake vasco:explore”时,就会出现问题。
    • 在使用Mongrel服务器可以正常访问
    • 在使用Thin服务器可以访问vasco时,会出现下面错误:
      No route matches ”/vasco” with {:method=>:get}