From: Helder Oliveira Date: 2007-01-09T19:28:14+09:00 Subject: trying to fo this right if i.timesheets.find(:first,:select=>'inserida',:order=>'inseridaDESC').inserida.to_s(:db).nil? miss = 'nemhuma inserida' else miss = _ end i know the _ isnt right, but im trying not to make the query 2 times, how can i make that if not doing the query two times ? -- Posted via http://www.ruby-forum.com/.