Installed Ruby on Instant Rails fine and the cookbook workd but can't seem to get a new app to work...

Hi, I'm brand new to trying to learn ROR. I just downloaded and installed Ruby on Instant Rails and all went well... I believe... Cookbook app included w/ Ruby on Instant Rails v2.02 works fine after install.

Next I set up  a new app: my_app
chose my Instant Rails "rails_apps" subdirectory as my workspace but of course down one level into the my_app subdirectory  Fired it up my_app (Mongrel running) and next want to setup a controller... here is where I'm having problems.

When I open a Ruby console window and navigate into my new my_app subdirectory and start typing commands.... nothing seems to be working. Even up a level from my my_app subdirectory in the rails_apps directory no commands work here either.

What is my problem.....????? HELP APPRECIATED!

THX Rip
ripnoelAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jimtechCommented:
Not sure if you have this link but has quite a bit of information and troubleshooting so take a look at http://api.rubyonrails.org/ and see if will answer the question for the problem you are having.
0
bobbit31Commented:
what commands are you typing?
0
ripnoelAuthor Commented:
script/generate  or script/generate controller Say

Receive this message:

I get the message that "script" is not recognized as an internal or external command, operable program or batch file.

Thanks for trying to help!

Rip
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

wesgarrisonCommented:
First, make sure you open a console window using the InstantRails option "Open Ruby Console Window" by right-clicking the red I in the system tray.  That loads all the ruby/mysql paths.

An easy way to check is type:
> ruby -v
It should return "ruby 1.8.6" or something like that. If it doesn't, then you don't have ruby on the path so it can't be found to run your ruby script!

Next, on windows, you normally have to provide the program name, then the command:
ruby script/generate Say

Windows doesn't support she-bangs (where the program that runs a file is on the first line of the file: #!/usr/local/bin"

So, if you can run "ruby -v" and try the command with the ruby name in front of it, that should do the trick.

If not, let us know what error you're getting and we'll go from there.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ripnoelAuthor Commented:
Well that did it... adding "ruby" name in front of it did the trick. Will I have to continue to add the ruby mane in front of all commands? Thanks again!
0
wesgarrisonCommented:
Well, you might be able to associate .rb file with the ruby.exe interpreter.  BUT, that would mean double clicking on them would run them, not open them in your text editor.  So, I've never set it up that way.  I do set up system batch files:  "ss.bat" for "ruby script/server" and stuff like that.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Ruby

From novice to tech pro — start learning today.