Ruby script/server directory missing from Windows

J

Jack Arnst

I installed Ruby using the Windows installer ruby185-24.exe and the script
directory is missing. It's been a long time since I last downloaded ruby,
but I remember that the Windows version came with a script directory.
Without it, how do I run all the commands like ruby script/server or ruby
script/generate? Thanks for any help.
 
C

come

The script directory comes with Rails, not with Ruby. You have to
create a new Rails project with the command "rails [project name]" to
create this directory.
 
P

Phrogz

I installed Ruby using the Windows installer ruby185-24.exe and the script
directory is missing. It's been a long time since I last downloaded ruby,
but I remember that the Windows version came with a script directory.
Without it, how do I run all the commands like ruby script/server or ruby
script/generate? Thanks for any help.

You seem to be confusing Ruby (the programming language) with Ruby on
Rails (the web development framework). Ruby on Rails (henceforth
"Rails") happens to use the Ruby language (hence the name) and happens
to have its name start with "Ruby...", but they are quite different.

Rails has a whole host of code and conventions (like directory
structures, the MVC model, etc.) that extend the Ruby language for web
development. People confusing the two ask questions like "Why doesn't
1.hour work in my Ruby program or irb?"; the answer is that the code
they are trying to run relies on the host of libraries like ActionPack
and ActiveSupport and ActiveRecord included in Rails.

The One-Click Windows Installer[1] does not even include Rails as part
of its installer.

You may want to be aware of the Ruby on Rails discussion group[2] for
all your Rails-specific questions, in addition to this mailing list/
forum/newsgroup (depending on how you got here) for Ruby language
questions.

[1] http://rubyinstaller.rubyforge.org/wiki/wiki.pl
[2] http://groups.google.com/group/rubyonrails-talk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,311
Members
47,978
Latest member
ReneGibson

Latest Threads

Top