Forum: Ruby on Rails problem with instant rails

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
E27edc5f93d62e636af713b0d77c6638?d=identicon&s=25 priyankeshu (Guest)
on 2009-02-08 12:56
(Received via mailing list)
hi thre i have just started learning ROR (following video tutorial by
VTC) but on the video they were teaching on MAC, i thought i can
follow along on window with instantrails... it was going fine

i got the instantrails set up and yes i can test apps like mycookbook and like so..

so far so good...

but after that when in the video tutorial the guy started creating a
new database for a new project it created in some Mac program so i was
not able to follow exactly on windows

however, i did went in to Phpmyadmin to create the database for it,
now i do not know .. how to link that database to my app... (in
the .yml file that is) also the database i had created has table names
that do not end with _development (that's i think the convention)

however, in the video tutorial.. after the guy created the database,
all the schema information automatically got into .yml file of the

i have no idea how to link my app with phpmyadmin...

any ideas what i am doing wrong?
1128ccdc6b414a39e38f00acca680b8d?d=identicon&s=25 stretch (Guest)
on 2009-02-08 15:46
(Received via mailing list)
ending with _development is the convention for the NAME of the dev db
not the tables
5f94b9b346c2aa648a80bc259978e5bc?d=identicon&s=25 Colin Law (Guest)
on 2009-02-08 16:02
(Received via mailing list)
Create the table in phpmyadmin as you suggest, name the database
something_development. It is then linked to the rails application by
config\database.yml. You will need something in there like:

  adapter: mysql
  database: something_development
  username: username
  password: password
  host: localhost

where username and password are those configured for mysql in phpmyadmin
the Priviliges link from the phpmyadmin first page). Unless you have
it then username root and no password will probably work.

2009/2/8 stretch <>
1128ccdc6b414a39e38f00acca680b8d?d=identicon&s=25 stretch (Guest)
on 2009-02-09 01:31
(Received via mailing list)
Another approach.  To create the app with mysql in database.yml

  rails something -d mysql

Get to the root directory of the app and create the dev db in
specified in database.yml (assuming username and password will work
for the database)

  cd something
  rake db:create

Then add a posts table

  ./script/generate model post
  rake db:migrate
Fac81a9d95c81d817a2debb6f717f3ac?d=identicon&s=25 Sazima (Guest)
on 2009-02-09 13:50
(Received via mailing list)
Yeah, use the rake tasks

Cheers, Sazima
This topic is locked and can not be replied to.