Ruby - Scripting Language

 
Post new topic   Reply to topic    Aprelium Forum Index -> Tutorials
View previous topic :: View next topic  
Author Message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Thu Apr 14, 2005 6:50 pm    Post subject: Ruby - Scripting Language Reply with quote

Since Shorthand no longer exists on the internet , I decided to write a Tutorial
for a new Scripting Language called Ruby and it works great. This is for all who
liked Shorthand but would like to try a new exotic scripting language lol.

Step One:

Download Ruby from
http://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/

Note: v1.8.2 is the latest stable version so choose v1.8.2 , also check back
on the Ruby website to check for new releases at http://www.ruby-lang.org

Step Two:

Unzip the contents of the Zip file to a folder called Ruby in your C:\ drive
where Perl is usually located , now open your Abyss Console and click on
Configure for the host you would like to add Ruby support on.

Step Three:

Go to Scripting Parameters and click on Add in the Interpreters Table and
add C:\Ruby\bin\ruby.exe or C:\Ruby\bin\rubyw.exe if your on a Win9x

Select Standard for Type and click Add in the Associated Extensions and
type rb and click OK , click ok to exit the Interpreters table and Click ok
again to exit Scripting Parameters and go to Index Files and add
index.rb now you can restart Abyss Web Server.

Ruby "Hello World!" Script:

Code:

puts "content-type: text/html"
puts
puts "<html>"
puts "<body>"
puts "<h1>Hello Abyss!</h1>"
puts "</body>"
puts "</html>"
Back to top View user's profile Send private message Visit poster's website
BMN
-


Joined: 16 Jun 2005
Posts: 16

PostPosted: Sun Sep 11, 2005 4:17 pm    Post subject: is that the only way you could code ruby? Reply with quote

hello, i am a newbie with regards scripting on web applications

Quote:

puts "content-type: text/html"
puts
puts "<html>"
puts "<body>"
puts "<h1>Hello Abyss!</h1>"
puts "</body>"
puts "</html>"


can't ruby be like ASP or PHP style of embedding like

<html>
<body>
<%
// Script in here...
%>
</body>
</html>


Thanks
________
Mercedes-Benz 320
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Tutorials All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group