Hi Dale,
Thanks for your input.
In message
<55d0b785050120154821aa5bdd-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>, Dale
K. Hawkins
<dkhawk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
writes>You should watch the video.
>
Did that. Got to the point where it cd''s to \dev\ruby\blog and runs
ruby dispatch.servlet. -a
and it complains there is no such script. It is right - there is no
script of that name.
>Basically, if you have a database record, for example, contacts, you
>can generate a controller and model (or better a scaffold) for
>contacts.
>
>$ ruby scripts/generate scaffold Contacts
>
Did that - OK.>Then you should be able to do operations on contacts via
>
>http://<rails_host_name>/contacts
I get a 500 error.
All logs empty, except apache.log which contains...
[Fri Jan 21 20:23:10 2005] [error] [client 192.168.0.15] Premature end
of script headers: dispatch.cgi
[Fri Jan 21 20:23:10 2005] [error] [client 192.168.0.15]
D:/ruby/lib/ruby/gems/1.8/gems/rubyzip-0.5.5/./zip/zip.rb:11: warning:
already initialized constant Tempfile\r
[Fri Jan 21 20:23:10 2005] [error] [client 192.168.0.15]
D:/ruby/lib/ruby/1.8/pstore.rb:25:in `initialize'': directory /tmp does
not exist (PStore::Error)\r
[Fri Jan 21 20:23:10 2005] [error] [client 192.168.0.15] \tfrom
D:/ruby/lib/ruby/1.8/cgi/session/pstore.rb:72:in `new''\r
[Fri Jan 21 20:23:10 2005] [error] [client 192.168.0.15] \tfrom
D:/ruby/lib/ruby/1.8/cgi/session/pstore.rb:72:in `initialize''\r
[Fri Jan 21 20:23:10 2005] [error] [client 192.168.0.15] \tfrom
D:/ruby/lib/ruby/1.8/cgi/session.rb:264:in `new''\r
[Fri Jan 21 20:23:10 2005] [error] [client 192.168.0.15] \tfrom
D:/ruby/lib/ruby/1.8/cgi/session.rb:264:in `initialize''\r
[Fri Jan 21 20:23:10 2005] [error] [client 192.168.0.15] \tfrom
D:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.3.1/lib/action_controller/cgi
_process.rb:71:in `new''\r
[Fri Jan 21 20:23:10 2005] [error] [client 192.168.0.15] \tfrom
D:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.3.1/lib/action_controller/cgi
_process.rb:71:in `session''\r
[Fri Jan 21 20:23:10 2005] [error] [client 192.168.0.15] \tfrom
D:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.3.1/lib/action_controller/bas
e.rb:577:in `assign_shortcuts''\r
[Fri Jan 21 20:23:10 2005] [error] [client 192.168.0.15] \tfrom
D:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.3.1/lib/action_controller/bas
e.rb:259:in `process''\r
[Fri Jan 21 20:23:10 2005] [error] [client 192.168.0.15] \tfrom
D:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.3.1/lib/action_controller/res
cue.rb:20:in `process_with_exception''\r
[Fri Jan 21 20:23:10 2005] [error] [client 192.168.0.15] \tfrom
D:/ruby/lib/ruby/gems/1.8/gems/rails-0.9.4.1/lib/dispatcher.rb:42:in
`dispatch''\r
[Fri Jan 21 20:23:10 2005] [error] [client 192.168.0.15] \tfrom
D:/rails/public/dispatch.cgi:10\r
[Fri Jan 21 20:23:10 2005] [error] [client 192.168.0.15] File does not
exist: D:/rails/public/favicon.ico
Ideas????
Ian
>
>
>On Thu, 20 Jan 2005 18:25:16 +0000, Ian Hobson
<Ian-1i7dRvFgrf+SE57U5PDhIQ@public.gmane.org> wrote:
>> Hi,
>>
>> I''m trying to set up two virtual servers, one for html the
other for
>> rails, both on my windows pc. I''m almost there, but not
quite.
>>
>> How can I test the installation of rails?
>>
>> I have the "you have ruby on rails" welcome screen, and I am
working
>> down the list of tasks.
>>
>> At 4 - use generate I find I can''t run generate except by
dropping to a
>> command box. OK. I need to look at the file to discover it is a ruby
>> script without the .rb extension!
>>
>> Where do I run it?
>>
>> What should I generate? Where can I find basic info on rails?
>>
>> Not knowing, I note that I can, and press on.
>>
>> At step 5 it says run test by running rake.
>>
>> I get
>>
>> D:\rails>rake
>> (in D:/rails)
>> ruby -Ilib;test -S testrb
>> Test::Unit automatic runner.
>> Usage: d:/ruby/bin/testrb [options] [-- untouched arguments] tes
>> rake aborted!
>> Command failed with status (1): [ruby -Ilib;test -S testrb ]
>>
>> What??? Is this not testing the install? Perhaps its complaining I
>> haven''t generated or written my ap, what?
>>
>> Help please. Where IS TFM?
>>
>> Thanks
>>
>> Ian
>>
>> --
>> If you practise error, you do error. If you practice perfectly, you
>>will become perfect.
>> You can''t correct the fast. You can speed up the correct.
>> MM
>> _______________________________________________
>> Rails mailing list
>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
>> http://lists.rubyonrails.org/mailman/listinfo/rails
>>
>
>
--
If you practise error, you do error. If you practice perfectly, you will become
perfect.
You can''t correct the fast. You can speed up the correct.
MM