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.
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.