Ruby web programming

Y

Yousef Jawwad

I am asking for , how I can call Ruby from html

for example :
<html>
<body>
<form action="something.rb"> // its possible to do that
</form>


</body>
</html>
 
B

Bernd Ritter

[Note: parts of this message were removed to make it a legal post.]

Hi Yousef,

you really might want to look at Ruby on Rails, which is a Ruby
Web-Framework. Everything you might want to develop for ruby on the
web, has most likly be done there already.

http://rubyonrails.org/

Greets,
Bernd
 
7

7stud --

Yousef said:
I am asking for , how I can call Ruby from html

for example :
<html>
<body>
<form action="something.rb"> // its possible to do that
</form>


</body>
</html>

Yes. You can use ruby's cgi abilities.
 
T

Thiago Massa

[Note: parts of this message were removed to make it a legal post.]

http://coolnamehere.com/geekery/ruby/web/cgi.html
<http://coolnamehere.com/geekery/ruby/web/cgi.html>Check it out, its good!

I used to do perl/cgi programming like 10 years ago for web(i was 10 years
old :D) and spent a while doing that in ruby because of the nostalgy. It was
the first programming language that i learned(well... i didnt even knew that
programming existed before) and i doubt i would be reading this e-mail if i
didnt.

But today is different, if you want to develop web apps... learn MVC and
ruby then go straight to rails, you can develop it wayyyyyyyyyyyyyy faster!
 
E

Ehsanul Hoque

http://coolnamehere.com/geekery/ruby/web/cgi.html
<http://coolnamehere.com/geekery/ruby/web/cgi.html>Check it out=2C its go= od!
=20
I used to do perl/cgi programming like 10 years ago for web(i was 10 year= s
old :D) and spent a while doing that in ruby because of the nostalgy. It = was
the first programming language that i learned(well... i didnt even knew t= hat
programming existed before) and i doubt i would be reading this e-mail if= i
didnt.
=20
But today is different=2C if you want to develop web apps... learn MVC an= d
ruby then go straight to rails=2C you can develop it wayyyyyyyyyyyyyy fas= ter!
=20

If someone knows some programming=2C especially if it's ruby or a similar l=
anguage=2C it might be a better idea to go with Sinatra. Easier to start up=
with=2C as you don't need to learn all the conventions and everything=2C t=
hough you probably need to learn how to use a few libraries=2C which isn't =
a big deal. In my opinion=2C it's a better platform overall too=2C but that=
's just my personal opinion. Whatever floats your boat. :)
=0A=
_________________________________________________________________=0A=
Hotmail: Free=2C trusted and rich email service.=0A=
http://clk.atdmt.com/GBL/go/171222984/direct/01/=
 
T

Thiago Massa

[Note: parts of this message were removed to make it a legal post.]

Well, rails productivity is really good. Sinatra looks good if you want to
start fast and dont have much background :)
 
M

Mike Stephens

You can't call Ruby from a web page. You have to use something like
Javascript.

You can insert Ruby programs in an html file to help build it but it
will disappear before the page gets sent.

You can get Ruby to build you web page actions but they will be in
Javscript at the time they arrive at the browser.

Rails has classes to build Javascript.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,167
Messages
2,570,910
Members
47,453
Latest member
MadelinePh

Latest Threads

Top