Still Stumbled on First things in trying RubyOnRails
I had tried the first of the top 12 tutorials and got stuck after adding
a new field â??category_idâ?in the table recipes, introduced
I log into http://localhost:3000/category/list, chose an item, and when
I hit the â??Editâ? button, error message occurred.
I then went on to modify
And now I couldnâ??t even log into http://localhost:3000/category/list.
After some discussions in the forum, I removed the database, re-created
a database â??cookbook2â? that resembled â??cookbookâ?, and copied all the
codes from â??cookbookâ? into the â??cookbook2â? directory.
With the full set of codes in place, and a new, empty database, I went
about creating, editing, deleting categories. No problems.
I went on to create, edit, and delete recipes. No problems.
My conclusion; with the full codes in place, even starting from an empty
database, the application is working fine.
After that, I removed the database, and the â??cookbook2â? directory, and
re-run the tutorial from scratch.
You know what, the same old problems occurred at the point when â??Editâ?
Introducing the field â??category_idâ? and changing
C:\InstantRails-1.0\rails_apps\cookbook2\app\models\recipe is a bit like
introducing a field with foreign-key contrainst.
Would mySQL automatically fill up this field in the exisitng records
when the amended codes are run?
If not, how do I fill in the blanks?
The tutorial had been there for many months, and I am sure many people
had taken it and there was no complaint.
So, what did I do wrong? Why me?
I would be grateful if some one would help.
After that, I went on to try â??Four Days on Railsâ? tutorial.
I was stuck because I donâ??t know how to introduce the Apache that is
required. So I used the InstantRails 1.0 that is already installed.
When I tried to log on http://todo/ I didnâ??t get the expected
As I had changed the port in Apache Configuration to 4001, and Apache is
listening to Port 80, I couldnâ??t go any further.
When I changed the Apache port back to 80, Apache couldn’t started.
Error message said that Port 80 is used by some other process.
As you can see by now, I am new to the Apache, mySQL, and even a bit shy
in Java Runtime, is it possible for some one to guide me through the
initial set-up and installation of Ruby, Rails, Apache, and mySQL
including the setting and changing of environment variables, path, lib,
etc, so that I can get into tutorials like the top 12?
Your assistance will be appreciated.