Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Ruby web programming

Reply
Thread Tools

Ruby web programming

 
 
Yousef Jawwad
Guest
Posts: n/a
 
      10-07-2009
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>
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Bernd Ritter
Guest
Posts: n/a
 
      10-07-2009
[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

Yousef Jawwad schrieb:
> 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>




 
Reply With Quote
 
 
 
 
7stud --
Guest
Posts: n/a
 
      10-07-2009
Yousef Jawwad wrote:
> 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.
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
Thiago Massa
Guest
Posts: n/a
 
      10-07-2009
[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 ) 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!

On Wed, Oct 7, 2009 at 2:32 PM, 7stud -- <> wrote:

> Yousef Jawwad wrote:
> > 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.
> --
> Posted via http://www.ruby-forum.com/.
>
>



--
Thiago Fernandes Massa
11 83979414

 
Reply With Quote
 
Ehsanul Hoque
Guest
Posts: n/a
 
      10-07-2009



> 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 ) 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/=

 
Reply With Quote
 
Thiago Massa
Guest
Posts: n/a
 
      10-08-2009
[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

On Wed, Oct 7, 2009 at 8:59 PM, Ehsanul Hoque <>wrote:

>
>
>
> > 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 ) 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!
> >

>
> 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.
>
> __________________________________________________ _______________
> Hotmail: Free, trusted and rich email service.
> http://clk.atdmt.com/GBL/go/171222984/direct/01/
>




--
Thiago Fernandes Massa
11 83979414

 
Reply With Quote
 
Mike Stephens
Guest
Posts: n/a
 
      10-08-2009
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.
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ruby and Contract Programming (was Ruby vs. Ada) Robert Dober Ruby 4 04-22-2008 07:35 PM
ruby web programming, how to associate a relative link and a method? anne001 Ruby 2 06-14-2006 04:44 PM
#!/usr/bin/ruby , #!/usr/bin/ruby -w , #!/usr/bin/ruby -T?, #!/usr/bin/ruby -T1... anne001 Ruby 1 04-23-2006 03:02 PM
Possible training classes for Ruby programming and for Ruby on Rails Curt Hibbs Ruby 0 05-31-2005 06:39 PM
Ruby Web Programming on Windows with mod_ruby/fastcgi is now inbusiness ... Sarah Tanembaum Ruby 1 12-17-2004 04:54 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57