On 6/8/06, Dominic Son <dominicson / gmail.com> wrote:
> <td><%= link_to 'Edit', :confirm => 'Are you sure?', :action => 'edit',
> :id => product %></td>
>
> 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?' }

> Help.
>
>
> --
> Posted via http://www.ruby-forum.com/.
>
>


-- 
If it's there, and you can see it, it's real.
If it's not there, and you can see it, it's virtual.
If it's there, and you can't see it, it's transparent.
If it's not there, and you can't see it, you erased it.