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....
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....