Topic: confirm

Hello friends i m new to rails and i want to show confirm box when i click on any link but i got the confirmation box two times.................your post is helpful for me......................reply

Re: confirm

code?

Re: confirm

Here i used the confirmation box in this line of my html file.........................
<%= link_to image_tag("delete.jpeg",:size=>"20x20"), {:action=>"delete", :controller=>"polls",  :id=>f} ,:title=>"click to delete", :confirm => 'Are you sure ?'%>