Ruby for web without rails

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?

On Fri, May 16, 2008 at 10:34 AM, Diego B.
[email protected] 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://avdi.org
Developer Blog: http://avdi.org/devblog/
Twitter: http://twitter.com/avdi
Journal: http://avdi.livejournal.com

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

–Jeremy

On Fri, May 16, 2008 at 10:34 AM, Diego B.
[email protected] wrote:


http://jeremymcanally.com/
http://entp.com

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

Or, my blogs:
http://mrneighborly.com
http://rubyinpractice.com

On May 16, 2008, at 8:34 AM, Diego B. 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://codeforpeople.com/

On 16 May 2008, at 15:34, Diego B. 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 :slight_smile:

Ellie

Eleanor McHugh
Games With Brains
http://slides.games-with-brains.net

raise ArgumentError unless @reality.responds_to? :reason

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

Diego B. 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 G.
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.blogspot.com

~ 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.mozdev.org

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

On May 16, 3:34 pm, Diego B. [email protected] 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.hokstad.com/blog)
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

Diego B. 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.

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 :slight_smile:

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

Well, thx everyone!

Diego B. 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 :slight_smile:

Albert S. wrote:

Diego B. 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 >.<

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