Hey-
I ran into to some problems when trying to follow "A tutorial by
Rails'' users." When I reached Step Three and executed the
controller
script as follows:
ruby script/generate controller Friends list display new edit
I got this error message:
C:\Inetpub\wwwroot\rails>ruby script/generate controller Friends list display
ne
w edit
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.3.0/lib/active_record/connection_a
dapters/abstract_adapter.rb:89:in `establish_connection'': development
database i
s not configured (ActiveRecord::AdapterNotSpecified)
from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.3.0/lib/active_record
/connection_adapters/abstract_adapter.rb:82:in `establish_connection''
from ./script/../config/environment.rb:37
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `r
equire__''
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `r
equire''
from script/generate:2
.... It took me a minute to figure out what may be wrong. I edited
the database.yml file as shown in step two. The config file does not
describe the development database, which the controller seems to be
looking for. When I listed the development database in the yml file
the script executed with no complaints.
I''m wondering if I have missed some previous step or if this a change
to rails that has yet to be reflected in the tutorial?
Thanks,
kd