Ruby on Rails - an Idiots guide - part 2.
This is a working document, and I have added it to this site, as I tend to update mostly here.
We have previously set up a simple database, after installing ruby on rails and mysql, now to do something useful:
All commands need to be operated in a cmd window; a reminder for this is:
** To open a cmd window, go to. Start / Run and type cmd and enter.
cd .. - takes you up a directory. (that is cd dot dot, do this twice to get to the C: drive
mkdir rubydev
cd rubydev
rails history
This command creates the history folder with a whole host of useful folders, files etc

cd history
ruby script/generate scaffold romford view

Do worry about the access denied error, this is because the database has not yet been configured properly. So, lets do this. Then run this command again, it still works without the extra files produced, but adds less scaffold code!

Using your normal view of a Windows file system, find the database.yml file, this exists in rubydev\history\config - and edit it in a text editor, I personally use textpad. Add the correct password in all three areas necessary.
OK, lets see if it runs -
ruby script/server

It looks good, the server is running on port 3000, so we can try this out by accessing this at http://localhost:3000/ - it doesn't do much.
So, all this doesn't appear to done a lot, what else do we need, a controller appears to be the answer! Use Ctrl & C to stop the server running and try this command
ruby script/generate controller romford
What happens if we start he server again, still not a lot
ruby script/server & http://localhost:3000/romford
This does not even work properly now, until we make one tiny change in the romford_controller.rb - we add the line in red, save the file and refresh the browser window
class RomfordController < ApplicationController
scaffold :romford
end
HEY PRESTO: Well, it's a basic design which did not take a lot of effort - see part 3

More to follow -
see part 3