hi,
im want to delete a user from a view controled by a different
controler than user_controller.rb.
from the view a make:

<td><%= user.username %></td>
      <td><%= user.email %></td>
      <td><%= user.sign_in_count %></td>
      <td><%= user.amis  %></td>
      <td><%= link_to 'Show',  user %></td>
      <td><%= link_to 'Edit', edit_user_path(user) %></td>
      <td><%= link_to 'Destroy', user, :confirm => 'Are you
sure?', :method => :delete %></td>

the url of this view is : http://localhost:3000/user_admins/index
when i clik in the link_to 'Show' it dispatch to: http://localhost:3000/users/1
and for edit : http://localhost:3000/users/1/edit

the probleme is when i want to delete the user, it do the same like i
want to show him and the view rended is the same of showing user :
http://localhost:3000/users/1

in the routes.rb there's resources
:users
resources :user_admins, :only => [:index] do
    collection do #operate on all ressources, not on a specific one
      ................................
     ...................................
    end
  end


what can i do to resolve this probleme please.
thanks

-- 
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.

Reply via email to