Re: writing ruby simple restaurant finder

-original message-
Subject: Re: writing ruby simple restaurant finder
From: “Jan E.” [email protected]
Date: 27/07/2012 2:08 pm

Hi,

Well, you’ll obviously need some kind of database for the restaurants.
The easiest way is probably to save them in a file as CSV (“comma
separated values”). You can then use Ruby’s CSV class from the standard
library to process them:

http://ruby-doc.org/stdlib-1.9.2/libdoc/csv/rdoc/CSV.html

Processing means going through each row and checking if the values match
the search criteria.

You could also use a “real” database system like PostgreSQL. But that
would take quite some time to learn.

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