Ruby web programming

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

for example :

// its possible to do that

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

Yousef J. schrieb:

Yousef J. wrote:

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

for example :

// its possible to do that

Yes. You can use ruby’s cgi abilities.

ruby then go straight to rails, you can develop it wayyyyyyyyyyyyyy faster!

If someone knows some programming, especially if it’s ruby or a similar
language, it might be a better idea to go with Sinatra. Easier to start
up with, as you don’t need to learn all the conventions and everything,
though you probably need to learn how to use a few libraries, which
isn’t a big deal. In my opinion, it’s a better platform overall too, but
that’s just my personal opinion. Whatever floats your boat. :slight_smile:

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

http://coolnamehere.com/geekery/ruby/web/cgi.html
http://coolnamehere.com/geekery/ruby/web/cgi.htmlCheck 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!

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs