[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby script/server directory missing from Windows

mo

7/4/2007 6:42:00 AM

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.
2 Answers

come

7/4/2007 7:04:00 AM

0

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.

On 4 juil, 08:42, Jack Arnst <j...@aol.com> wrote:
> 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.


Gavin Kistner

7/4/2007 2:23:00 PM

0

On Jul 4, 12:42 am, Jack Arnst <j...@aol.com> wrote:
> 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/wi...
[2] http://groups.google.com/group/rubyon...