Tuesday, December 27th, 2005

Try Ruby, Ajax style

Category: Ruby

<p>why the lucky stiff is up to his magic again.

This time he has created Try Ruby, a place to play with Ruby via your browser.

Not only is it cool that you can just type in commands and get instant feedback, but there is integration into the browser.

For one, you can type “help” (and “help 2″ etc) and the page changes below the prompt.

Recently added though is the ability to popup HTML within the page too:

 require 'popup'

 Popup.make do
   h1 "Things To Do" 
   list do
     p "Try out Ruby" 
     p "Ride a tiger" 
     p "(down River Euphrates)" 
   end
 end

Now, if only I could copy/paste!

try-ruby.jpg

Related Content:

Posted by Dion Almaer at 8:31 am
7 Comments

++++-
4.3 rating from 21 votes

7 Comments »

Comments feed

Why is the man, and this is the best online programming tutorial I’ve seen. Very cool.

Comment by Rob Sanheim — December 27, 2005

Dang, Iam stuck at ‘File.open(“/Home/comics.txt”, “a”) do |f|’ and nothing moves anymore :/

Comment by Dominik Hahn — December 28, 2005

damn, no IE 6 support :(

Comment by dave — December 28, 2005

Now if someone would just apply the same idea with SSH… what a killer tool for administrating *nix boxes from Windows machines without a decent SSH client.

Comment by T.J. VanSlyke — December 28, 2005

This is awesome. Great way to get familiar with Ruby on a beginners level.

Comment by Dylan Carlson — January 2, 2006

[...] 1 – Ajaxian » Try Ruby, Ajax style (tags: web2.0 ruby ajax) [...]

Pingback by Wapiwapi :: plugged in » Blog Archive » Links op zaterdagmorgen (28/01/06) — January 27, 2006

I am also stuck at ‘File.open(”/Home/comics.txt”, “a”) do |f|’. My prompt does not change to double dots.

Comment by lucidcarbon — August 2, 2008

Leave a comment

You must be logged in to post a comment.