# SQLite version 3.x
# gem install sqlite3-ruby (not necessary on OS X Leopard)
development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
adapter: sqlite3
database: db/test.sqlite3
pool: 5
timeout: 5000
Now i got message by clicking on the link ' About your application
Environment' as
"uninitialized constant ActiveRecord::Base"
ok...And my databasse.yml is like this..
# SQLite version 3.x
# gem install sqlite3-ruby (not necessary on OS X Leopard)
development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
adapter: sqlite3
database: db/test.sqlite3
pool: 5
timeout: 5000
err … Did you generated any model yet?
And SQLite is not same as MySQL, they are different.
Run cmd and type: gem i sqlite3-ruby
And comment config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
And, restart your server and try again
And then i have started the cmd -> ruby script/server
Then re started my browser. Then got the starting page..
Click on the link and and got the details...
This is the details
Ruby version 1.8.6 (i386-mswin32)
RubyGems version 1.3.1
Rails version 2.2.2
Active Record version 2.2.2
Action Pack version 2.2.2
Active Resource version 2.2.2
Action Mailer version 2.2.2
Active Support version 2.2.2
Application root C:/Ruby/TestOne
Environment development
Database adapter mysql
Database schema version 0
I think it is all correct...I have used a database ame that aleready
exist in mysql
Is it all correct?? Then What is to do next? I mean i dnt knw how can i
program on this ruby..initial simple program and need to knw wethr it is
actually connected to the DB...Means shall i take any data from the Db
in order to confirm??