[Rails] rails on Oracle 10g - missing controller ?

Dennis_Byrne@ak.blm.gov
Thu, 22 Jun 2006 21:18:54 -0000

I am trying to generate my first scaffold but I am getting a 500 error
from http://127.0.0.1:3000/foo .  Below is the information about my
system, as well as the commands I am typing.  I have also included the DDL
( Oracle 10g ).  I am mid way through chapter 6 of "Agile Web Development
w/ Rails".  Why aren''t there any files under app/controllers/ ?

C:\tmp\rubyWork>ruby -v
ruby 1.8.2 (2004-12-25) [i386-mswin32]

C:\tmp\rubyWork>rails -v
Rails 1.1.2

C:\tmp\rubyWork>rails app
      create
      create  app/controllers
      create  app/helpers
      create  app/models
      create  app/views/layouts
      create  config/environments
      create  components
      create  db
      create  doc
      create  lib
      create  lib/tasks
      create  log
      create  public/images
      create  public/javascripts
      create  public/stylesheets
      create  script/performance
      create  script/process
      create  test/fixtures
      create  test/functional
      create  test/integration
      create  test/mocks/development
      create  test/mocks/test
      create  test/unit
      create  vendor
      create  vendor/plugins
      create  tmp/sessions
      create  tmp/sockets
      create  tmp/cache
      create  Rakefile
      create  README
      create  app/controllers/application.rb
      create  app/helpers/application_helper.rb
      create  test/test_helper.rb
      create  config/database.yml
      create  config/routes.rb
      create  public/.htaccess
      create  config/boot.rb
      create  config/environment.rb
      create  config/environments/production.rb
      create  config/environments/development.rb
      create  config/environments/test.rb
      create  script/about
      create  script/breakpointer
      create  script/console
      create  script/destroy
      create  script/generate
      create  script/performance/benchmarker
      create  script/performance/profiler
      create  script/process/reaper
      create  script/process/spawner
      create  script/runner
      create  script/server
      create  script/plugin
      create  public/dispatch.rb
      create  public/dispatch.cgi
      create  public/dispatch.fcgi
      create  public/404.html
      create  public/500.html
      create  public/index.html
      create  public/favicon.ico
      create  public/robots.txt
      create  public/images/rails.png
      create  public/javascripts/prototype.js
      create  public/javascripts/effects.js
      create  public/javascripts/dragdrop.js
      create  public/javascripts/controls.js
      create  public/javascripts/application.js
      create  doc/README_FOR_APP
      create  log/server.log
      create  log/production.log
      create  log/development.log
      create  log/test.log

C:\tmp\rubyWork>move database.yml app\config
Overwrite C:\tmp\rubyWork\app\config\database.yml? (Yes/No/All): yes

C:\tmp\rubyWork>ruby app\script\generate scaffold Foo Admin
      exists  app/controllers/
      exists  app/helpers/
      create  app/views/admin
      exists  test/functional/
  dependency  model
      exists    app/models/
      exists    test/unit/
      exists    test/fixtures/
      create    app/models/foo.rb
      create    test/unit/foo_test.rb
      create    test/fixtures/foos.yml

The DDL is

CREATE TABLE "foos"(
    "id" numeric(10) PRIMARY KEY,
   "myText" varchar(10),
  "myInt" int
)

Dennis Byrne
-------------- next part --------------
An HTML attachment was scrubbed...