2014年5月10日 星期六

[Ruby on Rails] Create a first program "Hello World " at the views folder

[Ruby on Rails] Create a first program "Hello World " at the views folder



1. Go to app/controllers



2. Edit gedit blog_controller.rb



class BlogController < ApplicationController

    def index

    end

end





Edit gedit    app/views/blog/index.rhtml



hello world my first Ruby on Rails





3. Open Browser type :   http://0.0.0.0:3000/blog



Reference:





Related Posts:

0 意見:

張貼留言