Hacker News new | ask | show | jobs
by Kilimanjaro 5785 days ago
Hey guys, I really want to learn ruby for web development, but without rails or sinatra or any framework. I want to start from zero and go all the way up.

I want my first app to be:

    puts "<h1>Hello world</h1>"
and I'll take it from there.

Any good tutorials or docs?

2 comments

Well, you're going to want to look into Rack.

Really, you should just check out Sinatra. The whole 'framework' is like a thousand lines (or maybe two) of Ruby, and it's a pretty thin wrapper over Rack.

... any particular reason I'm at 0? Rack is the absolute minimum you're going to need to get Ruby to serve up dynamic pages, and Sinatra is an extremely minimal framework, to the point where it almost doesn't really deserve the term.

Http:ruby-doc.org/q/cgi

Then go dig into Ramaze. Strong helpful community around a durable, lightweight web framework that works as well for single-file web apps as it does for anything large and sophisticated.