[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby for web without rails

Diego Bernardes

5/16/2008 2:34:00 PM

I dont really like frameworks, i tryed to work with rails and i didnt
like, i tryed ramaze too, its nicer then rails to me but still isnt what
im looking for, have any way to make web apps in ruby like we do in php?
ppl say alot that mod_ruby is very bad, have a alternative?
or maybe use rack and thin/mongrel?

anyone got any tip?
--
Posted via http://www.ruby-....

10 Answers

Avdi Grimm

5/16/2008 2:38:00 PM

0

On Fri, May 16, 2008 at 10:34 AM, Diego Bernardes
<di3go.bernardes@gmail.com> wrote:
> I dont really like frameworks, i tryed to work with rails and i didnt
> like, i tryed ramaze too, its nicer then rails to me but still isnt what
> im looking for, have any way to make web apps in ruby like we do in php?
> ppl say alot that mod_ruby is very bad, have a alternative?
> or maybe use rack and thin/mongrel?
>
> anyone got any tip?

Rack makes it possible to write scripts in a CGI style without caring
what server is actually serving them.

Sinatra is pretty nice as a framework-for-people-allergic-to-big-frameworks.

--
Avdi

Home: http:...
Developer Blog: http:.../devblog/
Twitter: http://twitte...
Journal: http://avdi.livej...

Jeremy McAnally

5/16/2008 2:44:00 PM

0

Vintage is pretty similar to PHP. (I wrote it)

--Jeremy

On Fri, May 16, 2008 at 10:34 AM, Diego Bernardes
<di3go.bernardes@gmail.com> wrote:
> I dont really like frameworks, i tryed to work with rails and i didnt
> like, i tryed ramaze too, its nicer then rails to me but still isnt what
> im looking for, have any way to make web apps in ruby like we do in php?
> ppl say alot that mod_ruby is very bad, have a alternative?
> or maybe use rack and thin/mongrel?
>
> anyone got any tip?
> --
> Posted via http://www.ruby-....
>
>



--
http://jeremymca...
http:...

Read my books:
Ruby in Practice (http://manning.com...)
My free Ruby e-book (http://humblelittlerub...)

Or, my blogs:
http://mrneig...
http://rubyinpr...

Phillip Gawlowski

5/16/2008 4:47:00 PM

0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Diego Bernardes wrote:
| I dont really like frameworks, i tryed to work with rails and i didnt
| like, i tryed ramaze too, its nicer then rails to me but still isnt what
| im looking for, have any way to make web apps in ruby like we do in php?
| ppl say alot that mod_ruby is very bad, have a alternative?
| or maybe use rack and thin/mongrel?
|
| anyone got any tip?

Well, there is mod_ruby (showing its age, though), there's fastcgi and
fcgi, good old CGI, JRuby + Java application server...

As far as frameworks go: Merb is supposedly lightweight (I haven't used
it, so I can only repeat what I heard), and so is, apparently, Waves
(same cave at as with Merb).

Oh, speaking of Merb: There's eruby/erb (C based embedded Ruby/Ruby
based embedded Ruby), which is probably the closest to a PHPish Ruby
environment.

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.bl...

~ For your information, I'm staying like this, and everyone else can
just get used to it! If people don't like me the way I am, well TOUGH
BEANS! It's a free country! I don't need anyone's permission to be the
way I want! This is how I am - Take it or leave it! -- Calvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail....

iEYEARECAAYFAkgtupUACgkQbtAgaoJTgL98XQCdHAo3KemdQv1LYRdWM3bn1oHf
1PUAn30z6gDeRmA43z+TrulNSK/lgvqQ
=+Y3J
-----END PGP SIGNATURE-----

ara.t.howard

5/16/2008 4:59:00 PM

0


On May 16, 2008, at 8:34 AM, Diego Bernardes wrote:

> I dont really like frameworks, i tryed to work with rails and i didnt
> like, i tryed ramaze too, its nicer then rails to me but still isnt
> what
> im looking for, have any way to make web apps in ruby like we do in
> php?
> ppl say alot that mod_ruby is very bad, have a alternative?
> or maybe use rack and thin/mongrel?
>
> anyone got any tip?

just use rails/ramaze/merb and put everything in the view. merb and
ramaze both have very small footprints so this is a really possibility.

a @ http://codeforp...
--
we can deny everything, except that we have the possibility of being
better. simply reflect on that.
h.h. the 14th dalai lama




Eleanor McHugh

5/16/2008 8:05:00 PM

0

On 16 May 2008, at 15:34, Diego Bernardes wrote:
> I dont really like frameworks, i tryed to work with rails and i didnt
> like, i tryed ramaze too, its nicer then rails to me but still isnt
> what
> im looking for, have any way to make web apps in ruby like we do in
> php?
> ppl say alot that mod_ruby is very bad, have a alternative?
> or maybe use rack and thin/mongrel?
>
> anyone got any tip?

It's far from efficient, but there's a Camping presentation in my
signature link that also shows how to roll stuff up using just
WEBrick: it was partly based on a web app stack I wrote for a work
project a couple of years ago. This is the sort of thing Ruby excels
at :)

Ellie

Eleanor McHugh
Games With Brains
http://slides.games-with-...
----
raise ArgumentError unless @reality.responds_to? :reason



Diego Bernardes

5/17/2008 2:13:00 AM

0

I forgot camping, gonna give it a try, ive look the freatures, seams
nice for a 4kb framework >.<
Vintage is nice too, very small, very fast :)

Maybe in a future i build a framework on top of this microframeworks
that i like >.<


Well, thx everyone!
--
Posted via http://www.ruby-....

Vidar Hokstad

5/17/2008 2:04:00 PM

0

On May 16, 3:34 pm, Diego Bernardes <di3go.bernar...@gmail.com> wrote:
> I dont really like frameworks, i tryed to work with rails and i didnt
> like, i tryed ramaze too, its nicer then rails to me but still isnt what
> im looking for, have any way to make web apps in ruby like we do in php?
> ppl say alot that mod_ruby is very bad, have a alternative?
> or maybe use rack and thin/mongrel?

Rack is a great place to start. My blog (http://www.hoksta...)
is "framework-less", built on separately picked components + Rack to
glue it together. What really makes it nice (and much cleaner than
normal CGI) is that it's well suited to writing "filters" (often
referred to as Rack middleware) that pre- or post-process the data
coming in or being returned, so you can write very loosely coupled
components independent on frameworks - I've posted on my blog about a
couple of the components I've written.

As an added bonus, if you later want to use a framework, there are
adapters so you can use Rack as the interface between arbitrary web
servers and whichever framework you pick.

Vidar

Albert Schlef

5/18/2008 12:30:00 AM

0

Diego Bernardes wrote:
> I dont really like frameworks
> [...]
> any way to make web apps in ruby like we do in php?

Just for the record: there isn't really a serious project that uses
"bare php".

Drupal, Wikipedia, WhatEver, they all had to invent the wheel and built
some framework.
--
Posted via http://www.ruby-....

Diego Bernardes

5/18/2008 4:20:00 AM

0

Albert Schlef wrote:
> Diego Bernardes wrote:
>> I dont really like frameworks
>> [...]
>> any way to make web apps in ruby like we do in php?
>
> Just for the record: there isn't really a serious project that uses
> "bare php".
>
> Drupal, Wikipedia, WhatEver, they all had to invent the wheel and built
> some framework.

yea, i dont know, maybe im traumatized with some big frameworks, i fell
like using rpg maker to make a game >.<
--
Posted via http://www.ruby-....

J. Cooper

5/18/2008 5:43:00 AM

0

Diego Bernardes wrote:

>
> yea, i dont know, maybe im traumatized with some big frameworks, i fell
> like using rpg maker to make a game >.<

No, that's like using a CMS to make your site. Using a framework is like
using... a game framework (Gosu, XNA, whatever) to make your game. Which
again, is something just about everyone does if you don't want to pull
your hair out :)
--
Posted via http://www.ruby-....