tuesday's reprise......10th grade

why 10th grade is awesome, and other assorted or unassorted thoughts

Wednesday, November 01, 2006

more ruby.....help for those who need it....

just keeping you updated.

i found a nice, virus free (i scanned it with Norton Anti-Virus to be sure) version of MySQL-Front but haven't completed installation yet.

I also solved my problems with the dev enviroment.

And i also just found out that i was really overthinking. This framework is simpler to use than i thought.
Also, another thing i learned. You have to start the command window from the InstantRails app and then start rails in that windows for ruby scripts to work.

a little summary of basic knowledge useful for starting Ruby on Rails...


to open to command prompt window from InstantRails

click top left I (left of the word apache) > Rails Applications > Open Ruby Console window

to start rails, enter

....rails_apps\rails

this loads the framework or whatever into the command prompt.

from there on, YOUR RUNNING RAILS!!!!!

go can acces the default page of your server at this point at

http://localhost:3000/


to create a new file or new project using rails

.....\ruby_apps\rails [ any name here]

to start the web server for your project

......ruby_apps\[the project name]\ruby script\server

Then you you can use

.......ruby_apps\[the project name]\ ruby script\generate controller [any name here]

Now this is where you can code. If you go explore (not in the command prompt) in the

.....InstantRails-1.4-win\InstantRails\ruby\scite

folder, you'll find a nice coding app called Scite. so far, i have found that you are NOT supposed to create new programs with Scite.

You are supposed to generate the files with ruby on rails because then it automatically generates the application skeletons. Just like the generate controller command i showed you. Then you can open the file with Scite, and program in ruby.

The nice thing about this, is that the files are always in the right place, and the skeletons are there.

.............wow, i am realising that i'm learning alot about ruby, rails and servers (both local and web) at a super fast pace.......

ttyl,
brian

0 Comments:

Post a Comment

<< Home