Chapter Recap

What was new in this chapter?

  • Using Ruby for CGI scripts

  • The cgi library

  • cgi.params

  • mod_ruby

  • .rhtml and .rcss files

  • Apache configuration files

This chapter scratches the surface of CGI programming, with Ruby or other languages. Its purpose was to get you comfortable with using Ruby to interact with a webserver and browser. Most web-based coding in Ruby makes use of the Rails framework, which we’ll get to soon. But first, we’ll be installing Rails with the RubyGems system, so that is the subject of our next chapter.

Get Ruby by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.