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
On Sun, Jun 19, 2011 at 10:16 PM, Andrew Skegg <[email protected]> wrote:
> Adel Mediouni <mediouni.adel@...> writes:
>
> >
> > hi
> > i have a link in a view to delete a user:
> > <td><%= link_to 'Destroy', {:controller => :users, :action
> > => :destroy, :id => user}, :confirm => 'are you sure !' %></td>
> >
> > all works good,when i click to delete user its ok, just i dont have
>
>
>
> Do you have the javacript libraries loaded?
>
> --
> 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.
>
>
--
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.