Class: User

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
ActionController::UrlWriter, ActionView::Helpers::AssetTagHelper, ActionView::Helpers::JavaScriptHelper, ActionView::Helpers::TagHelper
Defined in:
app/models/user.rb

Overview

Schema Information

Table name: users

 id                :integer(4)      not null, primary key
 username          :string(255)
 crypted_password  :string(255)
 password_salt     :string(255)
 surname           :string(255)
 name              :string(255)
              :string(255)
      :string(255)
      :datetime
 created_at        :datetime
 updated_at        :datetime
 persistence_token :string(255)     not null
   :string(255)
   :datetime
 backend_language  :string(255)     default("en")
 deleted_at        :datetime

Instance Method Summary

Instance Method Details

- (Object) actions



42
43
44
45
46
47
48
49
# File 'app/models/user.rb', line 42

def actions
  actions = link_to_remote( image_tag("icons/edit.png") , 
                                :url => { :controller => "admin/users", :action => "edit", :id => id, :only_path => true  }, 
                                :method => "get")
  actions << link_to_remote( image_tag("icons/delete.png") , 
                                :url => { :controller => "admin/users", :action => "destroy", :id => id, :only_path => true  }, 
                                :method => "delete")
end