Delete confirm

Hi all,
I am using :confirm=>“Are you sure ?” for delte fuunctionality so
that i 'll be getting a pop up box “Are you sure?” But I want the name
or id of the element to be deleted on the pop up box. Eg: If i delete ,
i should get Are you sure to delete id# 1?..
so can anybody help me in doing this??

Thanks in Advance ,
harish

On Thu, 28 Dec 2006 13:35:21 +0100
Naga harish Kanegolla [email protected] wrote:

Try using :confirm => “Are you sure you want to delete #{@obj.id}?”

Hi,
I tried this but I am getting the whole line in the popup. like Are you
sure you want to delete #{@obj.id}?, Its no ttaking the value. Is there
any other type to do this??

Jason S. wrote:

On Thu, 28 Dec 2006 13:35:21 +0100
Naga harish Kanegolla [email protected] wrote:

Try using :confirm => “Are you sure you want to delete #{@obj.id}?”

Naga harish Kanegolla wrote:

Hi,
I tried this but I am getting the whole line in the popup. like Are you
sure you want to delete #{@obj.id}?, Its no ttaking the value. Is there
any other type to do this??

Jason S. wrote:

On Thu, 28 Dec 2006 13:35:21 +0100
Naga harish Kanegolla [email protected] wrote:

Try using :confirm => “Are you sure you want to delete #{@obj.id}?”

Make sure you are using double quotes on that :confirm. You must use
the double quotes so that it will interpolate the variable.