On Monday 09 January 2006 03:35 pm, Chris wrote:
One thing you could do is take 5 minutes to build yourself a tiny
and then explore the directory structures of that. Combined with seeing
directory structure of your full blown app, plus some of the
several people have suggested, you should be able to familiarize
pretty quickly. As I remember, here are the steps:
First, find a directory where you (normal user) have read/write/execute
ruby script/generate controller Greetings index page2
If the server gripes about another server and terminates, use this
ruby script/server -p 8818
The preceding assumes that it’s safe to use port 8818 on your computer.
your services file. If you need to do that, make sure you substitute
port number for the 3000 in the following URL’s.
Now, with the server running, browse to http://localhost:3000, and
a little page telling you all about the rails environment. Then browse
http://localhost:3000/greetings (remember the controller you generated
called Greetings) and see the newly generated app’s main page, and go to
http://localhost:3000/page2 to see a second page (another View, in Rails
Doing the preceding will be 5 minutes very well spent, and you can not
look around the newly created directory structure, but you can mess
with it, because it’s a throwaway app it took you 5 minutes to create.