Re: find_by_sql Method

Hassan Schroeder
Fri, 19 Aug 2011 18:27:09 -0000

On Fri, Aug 19, 2011 at 9:36 AM, Charles Otieno
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:

> I am querying the courses table for specific courses that belong to
> specific institute using this sql statement.

Why are you writing SQL statements instead of taking advantage of
associations, one of Rails'' most powerful features?

--
Hassan Schroeder ------------------------
hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
http://about.me/hassanschroeder
twitter: @hassan