Module: UsersHelper

Defined in:
app/helpers/users_helper.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) remote_delete_user(user)



2
3
4
5
6
7
8
9
10
11
# File 'app/helpers/users_helper.rb', line 2

def remote_delete_user(user)
  return link_to(
    image_tag("blank.png", :title =>t('users.destroy_user'), :class=>"delete_item"),
    url_for({:controller => 'users', :action => 'destroy', :id => user.id}),
    {:id => "delete_user_#{user.id}",
      :class => "delete_user_button",
      :title => t('users.destroy_user'),
      :x_confirm_message => t('users.destroy_confirmation', :login => user.)
    })
end