Hi,
From: "nonocast said:
i want to read some ruby code
it doesn't very large.just a small program.
something like rails is too complex to me.
i am a newbie.i want to know how to start.
If rails is too complex, you could flip to the other
end of the spectrum, and experiment with a "hello world"
program using the CGI library. This might be helpful,
on the supposition that learning some CGI basics should
give some insight into what frameworks like Rails and
others are attempting to help make simpler.
The WEBrick HTTP server has been bundled with the
standard library since Ruby-1-8-0. This would allow you
to serve your own web pages on your local machine, to
develop your program and learn about CGI and web
programming. Because CGI is a standard protocol, CGI
programs that you develop using WEBrick will translate
to servers like Apache, so if you have an Internet
web host that supports Ruby (there are many to choose
from) your CGI programs developed on your local
computer using WEBrick, will run on the Internet, too.
If you want to store your data in a database, you have
options from the simple (Marshal/YAML -- built-in to
Ruby) to ActiveRecord or Og or other object-relational-
mapper services, as well as direct SQL database
connections via DBI, . . .
So you can start simple, but might find basic CGI
learning useful, if you're interested in web programming
and rails.
Just a thought
Regards,
Bill