install Ruby on Rails

     Today, i want to try to install the ruby on rails. You see, now the technologies about the ROR are very hot. And our SIT has not report any problem to us, i have time to self study.
    First i downloaded the InstantRails, a prepackaged ruby on rails software including apache server,ruby,rails,mysql,and so on. Everything you needed to use the ROR in a single install,you don't need to find other package to install for the ruby on rails to run, great!
    After I installed InstantRails,it realy works,but i think it's too easy. It's too simple  to finish that you don't understand it's core tech. So i want to install the software package by package,it's interesting,you know.
     I downloaded the ruby,rails and it's dependent packages like activerecord,activesupport,actionpack.I don't know why they not include the dependent packages in a single package? I have to download the several packages one by one, it's too boring.After download the software, i begin to install, first install ruby, then rails. When i install the rails by remote, it always report an error:"..connect(-1)...", maybe it can't connect to the server on internet because our company used proxy. The rem program can setup proxy but i tried several times,it don't work. Finally i have to install by local model, only to download the several dependent packag,the rails installed successfully.
    I now can setup my first test program, run "rails test" to create it. Change to the program folder "cd test",run the embedded http server "ruby script/server",ok! the server is up. Go to the address in browser:http://localhost:3000, Ok, the server first page appeared!
I created a test controller by "ruby script/generate controller test". But after it completed to create the files and folders, and enter the address in browser:http://localhost:3000/test/, it reported the error"Application Error(rails)", why? not any error in the install!
    I changed my base folder to C:/rails "cd c:/rails", and recreate the test program "rails test",to test folder "cd test" and recreate the test controller, i restarted the server in the new folder and test it in browser :http://localhost:3000/test/, ok, this time it works! why ? i don't know, maybe the previous folder is not right ?
    Ok, it finally works, anyway, can preceed to study RoR.... 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值