Hi guys: This is driving me crazy. Can someone please point me in the
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!