ok then say lst_id = Model.find(:last).id puts lst_id.inspect
hope 'll get this as Model.find_last retunrns the entire last record On Thu, Oct 30, 2008 at 5:53 PM, mithila karunarathna <[EMAIL PROTECTED] > wrote: > thankx guys > but > still there is a problem > > User.find(:all, :order => 'id DESC', :limit=>1) > > and > > Model.find(:last) > > both return "#" mark only. whats the reson? i want last index id > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

