From: Jojo Mojo Date: 2007-12-13T09:30:23+09:00 Subject: Re: Inject SQL Statement in Rails yudi wrote: > You can use find_by_sql to use MySQL directly: > > @object.find_by_sql("SELECT course_id > FROM degrees > WHERE programme_id = 1 > ") > > @object will be referenced with an array of entries from database. okay so i put this statement in the model right? just curious, how does the view/controller know where to find this? -- Posted via http://www.ruby-forum.com/.