hi, try
<%= link_to 'Destroy, user_path(@user), :method=>:delete, :confirm =>'are you sure?'%> tom On Jun 20, 2011, at 10:54 , Adel Mediouni wrote: > i try it, always the same probleme :s > > 2011/6/20 Everaldo Gomes <[email protected]> > Hi! > > I'm new to Rails and on the list, but I'll try to help. > > I think you should write: > > <td><%= link_to 'Destroy', {:controller => :users, :action > > => :destroy, :id => user, :confirm => 'are you sure !' } %></td> > > ....I think you should change the curly braces. > > http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-link_to > > Everaldo > > -- > 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. -- =============================================================================== Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache www.meinlschmidt.com www.maxwellrender.cz www.lightgems.cz =============================================================================== -- 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.

