PDA

View Full Version : Getting Started


rassler
August 19th, 2005, 11:19 AM
I am still struggling getting started with Rails but I am not certain if the problem lies with me or you. I would be happy for you to tell me I'm a complete dummy because I've missed something, just so long as I can get started.

The only thing that works is the default index.html page.

For example, the famous 'cookbook' tutorial,

I use the host supplied script to generate a rails project,

ocs-install-rails

The cookbook example is at,

http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=2

I get as far as the default page 'Congratulations your on rails' but get
no further in any tutorial that I have tried.

The next part is to add a controller,

script/generate controller MyTest

It generates the files.

Then I am told to browse to it, before adding anything else just to show
me that the display will be 'Unknown action' instead of 'Not found'.

I have tried,
http://mydomain/cookbook/My_Test
http://mydomain/cookbook/MyTest
http://mydomain/My_Test
http://mydomain/MyTest

All with and without a trailing /
(and a few more which are probably too silly to show you)

All give 'Not found' message, instead of the unknown action
message I should get.

If I carry on and put in the 'def index' part (just to see if it makes a
difference), it is the same.

This situation is true for every tutorial I have tried to do.

Now, the default index.html page ('Congratulations...') is just that, a
default html page and as far as I can see doesn't need anything to be
running in order to be displayed.

So I suspect that Rails isn't actually running at all for my account.
Does that seem reasonable from what you know.

A look at the running processes on your server does show dispatch.fcgi
processes running on other peoples accounts, but none on mine.

Attempting to run either of the two versions of 'dispatch' directly from the command line always fails with '404 Page not found'.

So tell me, is it me or is it you. Just give me enough to get started on the tutorials and I'll be alright.

rob
August 21st, 2005, 07:13 PM
I'm not 100% certain if your account is setup correctly. Please submit a trouble ticket with your account details and we'll get this fixed ASAP.

We'll keep this thread open and if a solution is found that is on your end and not ours, we'll post it back for the benefit of others. My gut feeling though is that this is a one-off configuration problem on your account on our end.

rassler
August 22nd, 2005, 04:57 PM
I put in a request as you said. He wrote back and said he had created a project that worked.

I'm afraid I don't know what has changed, but it is working now. Except for one thing, he told me to use

./script/generate

Instead of

script/generate

I had used from the projects base directory. I can't think how that would be a cause though as the correct files were generated.

But still, I am just glad that I can get started learning rails properly.

rob
August 22nd, 2005, 09:06 PM
I handled your ticket. I didn't see any differences in the other instances either, other than 777 permissions on files that shoudn't have been.

Since the test install of rails I did worked however, I'm confident that any future instances you install will work fine.

Rob