oh forgot to ask for id:
YourObjectName.last.id

On 30 Okt., 13:08, MaD <[EMAIL PROTECTED]> wrote:
> i don't know if i understand correctly what you want to do, but you
> could just type:
> YourObjectName.last
>
> On 30 Okt., 13:05, "Ishara Gunathilake" <[EMAIL PROTECTED]>
> wrote:
>
> > can anyone tell me how can i get the last id(primary key) of the table
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to