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

Dennis_Byrne@ak.blm.gov
Thu, 22 Jun 2006 23:47:08 -0000

Scott,

I checked database.yml w/ a "ruby -ryaml" variant and all was well.
The
logs do not appear active until WEBrick is started ( after code
generation).  Thanks though.

Dennis Byrne




Scott <sh23@ntrs.com>
Sent by: rails-bounces@lists.rubyonrails.org
06/22/2006 02:17 PM
Please respond to
rails@lists.rubyonrails.org


To
rails@lists.rubyonrails.org
cc

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






Dennis,
The Web server should have generated an internal error log which gives
more details of what went wrong.  Also you can go to C:\tmp\rubyWork\log

You may wan''t to look at what Ruby interface your using for Oracle.

http://rubyforge.org/projects/ruby-oci8/

vs.

http://rubyforge.org/projects/ruby9i/

One final thing and I know it sounds basic but check your database.yml
to ensure that all your envirnoments are set up for Oracle and the user
name and password are correct.




unknown wrote:
> 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


--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Rails mailing list
Rails@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails

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