I had one more problem. I dont want to use sqlite3 instead want to use
Postgresql...
Do u have any idea of how to do it..
I think I installed all the required gems
I want to modify the database.yml file which I did but even cant get the
things done!!
If you have already generated the app, you need a section like this in
your database.yml:
development:
adapter: postgresql
host: localhost # or your server name
database: my_app_development
username: me
password: password
and similarly change the test and production sections too.
Once you've done that, you can use rake db:create to automatically
create your local postgres database which I think is pretty cool.
In the future, when you create a new Rails app, you can use the -d
option to specify postgresql, which will generate the database.yml for
you from the beginnning.
development:
adapter: postgresql
host: localhost # or your server name
database: my_app_development
username: me
password: password
and similarly change the test and production sections too.
Once you've done that, you can use rake db:create to automatically
create your local postgres database which I think is pretty cool.
In the future, when you create a new Rails app, you can use the -d
option to specify postgresql, which will generate the database.yml for
you from the beginnning.
Jeff
purpleworkshops.com
Once again thank you jeff
I was able to change the database.yml file...but I dint understand what
to change on test and production sections(I was a new guy for ROR)
I was able to create a new db too.
Thanks jeff again, this info helped me alot....
Could u please tell me what to update on those two files