maonet technotes

IOC(SM):MOC(RM):TDD(NU):SCC(TFS):ORM(L2S):JSL(Jq):CIS(CC)

Hello World for Rails

Posted by Frank Mao on September 29, 2006

1. rails hello
2. cd hello
3. ruby script\generate controller hello
4. Create a file called index.rhtml in app/views/hello, containing “Hello world”.
5. ruby script\server
6. Navigate to http://localhost:3000/hello in your browser and be greeted with your friendly application: “Hello world”

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>