Hi guys: This is driving me crazy. Can someone please point me in the right direction:
I'm trying to get the last record from my table. Every time I do this, it tells me there is no method, other than id. theconditions = "criteria = '"+t+"'" lastrec = Capture.last(:all, :conditions => theconditions) This table has a number of fields in it id, created_at, tid, text When I call lastrec.id, it works When I call lastrec.created_at it gives me (undefined method `created_at' for nil:NilClass) Any ideas? Thanks for your help! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

