View previous topic :: View next topic |
Author |
Message |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Thu Apr 14, 2005 6:50 pm Post subject: Ruby - Scripting Language |
|
|
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 |
|
|
BMN -
Joined: 16 Jun 2005 Posts: 16
|
Posted: Sun Sep 11, 2005 4:17 pm Post subject: is that the only way you could code ruby? |
|
|
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 |
|
|
|