Hello World for Rails

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”

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s