Is there a standalone Ruby (and Rails) solution that can be run from a flash drive?

In the near future, I can teach the Ruby programming class to students at art college. This is a safe assumption that students have little or no programming experience. The class will be taught in a computer lab, but they do not have any administrative rights on lab computers.

Ideally, I would like students to be able to run Ruby from a flash drive both in the lab and on their computers at home. Even better, if this can be done relatively transparently on both a Mac and a Windows PC (I suppose Linux users probably know how to set up Ruby anyway). And even better if they can run Ruby on Rails and / or install gems using the Ruby installation on a flash drive.

Is this completely unrealistic or is there an easy way to do this? These will be non-programmers, art students, so the less tuning at their end, the better.

Edit:

I should have mentioned that I know of several one-click installations for Ruby and Rails. I guess I'm wondering if there is a way that I can give students an already configured installation that runs away from the flash drive and allows them to run Ruby scripts and possibly even install gems.

+3
source share
7 answers

To get started, you'll need two copies of Ruby on your USB drive: one for Windows and one for Mac OS X.

Then you need to create a script in each to add Ruby to the path and open a terminal.

I would build it like this:

  • ruby
    • window
      • bin, lib, etc.
      • start.bat
    • mac.
      • bin, lib, etc.
      • start.sh

Window

Content start.bat

@echo off
set PATH=%CD%\bin;%PATH%
start cmd

Create shortcut for start.batwith working directoryruby/windows

Mac OS X

start.sh ( script)

...

script.

, , , , Ruby USB-.

+7

InstantRails , . Windows , .

Apache MySql Rails hilighting .

+1
+1

RubyStack , . USB-, , ( / , ImageMagick). BitRock, . , Rubystack Windows, Mac Linux, , , . .

+1

, , http://herokugarden.com/, Ruby on Rails, , .

, ThoughtBot ( / Rails) .

+1

Locomotive Ruby/Rails OS X.

0

AFAIK. Ruby Rails Mac OSX. .

, ruby ​​ -, (, , , , , , webrick). Windows , , :\ruby ​​\ bin , , , CMD ( , ). . , Mac, , .

0

All Articles