views:

99

answers:

3

Hi.. I am going to learn Ruby on Rails (ROR) , can any one help me how to write a "hello world" program and How can I run the program.

+2  A: 

First, you have to install ruby http://www.ruby-lang.org/en/ . All your things you have to install you find here http://rubyonrails.org/download Well, i suggest to start with http://rubyonrails.org/screencasts, the 15 minutes weblog tutorial.

dombesz
I have already installed ruby.
ungalnanban
see the following answer only I asked,
ungalnanban
A: 

I got the answer....

we need to use the following steps.

  1. rails appliaction_name - It will create a directory. In that directory contains list of files and directories.

     app        config  doc  log     Rakefile  script  tmp
     components  db     lib  public  README    test    vendor
    
  2. Change the file mode "777" for public/ log/ and tmp/ file. because the program will write the datas in to the files.

  3. ./script/generate controller controller_name

    Then it will create the controller_name.rb (ruby file in app/ directory)

  4. Then we can write the codeing in to the app/controllers/controller.rb file.

  5. Then we need to call the function from browser.

Thanks................

ungalnanban
+2  A: 

Check out _why's poignant guide to ruby.

Kevin