This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 173200 - project wizard does not reflect reality
Summary: project wizard does not reflect reality
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Rails (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P4 blocker (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-28 18:07 UTC by Vince Kraemer
Modified: 2011-01-28 20:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
the second page (88.57 KB, image/png)
2009-09-28 18:08 UTC, Vince Kraemer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vince Kraemer 2009-09-28 18:07:29 UTC
I went through the rails project wizard.

The second page appears to say that NO DB config is being done... as in the app will not attempt to use a DB.

When I run the app, it attempts to connect to mysql.... which is not running on my machine.

If I were to use a db... i would be using javadb...
Comment 1 Vince Kraemer 2009-09-28 18:08:25 UTC
Created attachment 88442 [details]
the second page
Comment 2 Erno Mononen 2009-09-29 16:10:19 UTC
The idea is that wizard configures the database only if you do specify something on the second page; otherwise it just 
defaults to what "rails AppName --database=mysql" generates. I see that this can be confusing for folks who haven't 
been using the command line generator, but I think changing the wizard so that it would configure Rails to run w/o a db 
in this case could be equally confusing (in particular as this is the first report on this). I'm downgrading to a P4 
for now, will upgrade the priority again if more users bring this up. 

PS. Just in case you'd like to know how to run Rails w/o a db - check config/environment.rb, it contains the following:

  # Skip frameworks you're not going to use. To use Rails without a database,
  # you must remove the Active Record framework.
  # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]

So just uncommenting the last line does the trick.