From: Dominic Son Date: 2006-06-08T20:22:32+09:00 Subject: Re: (newbie) Why doesn't this line work? Vlad GALU wrote: > On 6/8/06, Dominic Son wrote: >> <%= link_to 'Edit', :confirm => 'Are you sure?', :action => 'edit', >> :id => product %> >> >> Why doesn't this work the way it should, which is (from my >> understanding) >> 1. link something to edit >> 2. before going to the edit page, asking 'are you sure?' > > :confirm belongs to html_options. It should look like link_to > 'Edit', { :action => 'edit', :id => product }, { :confirm => 'Are you > sure?' } Nice, thanks. Does anyone have a tree of nods/level/structure of where and how these objects should go? Thanks -- Posted via http://www.ruby-forum.com/.