talk less do more… langsung aja ke tutorial nya ya!
Untuk server gw make ubuntu 9.04 yang udah gw install server apache …. jadi untuk instalasi server ga dibahas disini … kita mulai dari instalasi ruby and rails
$ sudo apt-get install ruby rails
$ mkdir ~/www
$ mkdir ~/www/rails
$ cd www/rails
$ rails firstrails
$ cd firstrails
$ ./script/server
$ ./script/generate controller helloworld
$ vim app/controllers/helloworld_controller.rb
class HelloworldController < ApplicationController
def index
@msg = "Hello World!"
end
end
$ vim app/views/helloworld/index.rhtml
<h1><%= @msg %></h1>buka deh
http://localhost:3000/helloworld
CMIIW…
Semoga bermanfaat
Sumber:
http://www.cecep.web.id/archives/51
http://guides.rubyonrails.org/
wogh, malah belajar ruby lo ?!
OOT : pantes ga masuk RSS reader gw, dipindahin ke /blog/ toh, berarti ada directory laen nih
@eR
….
belajar apa aja kan ga ada masalah