views:

183

answers:

4

I am experimenting with Ruby and Rails. I like Ruby, but not Rails. I have Java/PHP background, I have used some frameworks, but never totally liked any of them.

Anybody using Ruby to build web apps, but not any of the frameworks? (rails, merb etc). If yes, can you point me to some resources to learn it?

+7  A: 

Doing Web apps in Ruby without using a framework is like cooking without heat. I question the sense of trying this.

That said, you could probably hook up Apache to call a Ruby program as a CGI. I suspect it would be dog slow, though.

Edit: Apparently you're not the only one crazy enough to attempt this, though: I found a tutorial on Simple Ruby CGI. The author claims as his rationale that "he has nothing better to do."

Carl Smotricz
+9  A: 

It might be wise to at least leverage Rack, and maybe Sinatra gets enough out of your way for you to feel comfortable. Sinatra isn't much more than a very small, simple wrapper around the rack handler afaik.

+1 for the Sinatra suggestion. If you want a framework that gets out of your way, Sinatra is the way to go.
Brian Campbell
Another good lightweight alternative is [Ramaze](http://ramaze.net/)
Justin L.
+2  A: 

Your question looks quite similar to Ruby off the rails, so you probably should read the answers of that one.

Veger
A: 

I'm using ruby instead of bash and python on my ubuntu server for sysadmin tasks.

I've found Ruby a particularly clean and powerful replacement for the places I'd have previously used bash and python in sysadmin.

cartoonfox