Archiv für die ‘Ruby on Rails’ Kategorie

a humble tutorial for Rails 2.0 with new SCAFFOLD

24 August 2008

It was also my problem to not to be able to continue with old tutorials to make nice scaffold thing, so i searched and found the solution and they say this method is nicer than earlier one. Actually since i dont know the earlier version it doesn’t matter for me, but i share here how i could proceed with scaffold… here you are.

rails -d mysql my_inventions
mysqladmin -u root --password=my_pass create my_inventions_development
cd my_inventions
mate .

» Weiterlesen: a humble tutorial for Rails 2.0 with new SCAFFOLD

dealing with MySQL databases from Terminal application

20 August 2008

Creation of the database:

You should write following on terminal, mysqladmin is the command after -u comes the username that you want to login to db, and you type -p for it to ask you the password and then create database command and the name of the db.

mysqladmin -u root -p create my_first_database

or

mysqladmin -u root --password=your_password create my_first_database

» Weiterlesen: dealing with MySQL databases from Terminal application

Ruby on Rails installation on my OS X 10.5 Leopard

19 August 2008

First of all i have checked Kevin Skoglund’s introduction videos to Ruby on Rails. here.

There is a very nice tutorial at hivelogic.com. here.

i could not make MySql working as it is told at hivelogic.com, couple of times tried but no luck. I downloaded an installation package from mysql official page and installed and everyhting went perfect.

» Weiterlesen: Ruby on Rails installation on my OS X 10.5 Leopard