> Model Employee
> --------------
> def self.list
>  find(:all)
> end

This is a class method inside Employee Model. it can also be written as

  def Employee.list
    find(:all)
  end

This kind of methods can be called without the instance of the Model 
class.



> 
> In some case it is used inside
> 
> Model Employee
> --------------
> def list
> self.find(:all)
> end

This one is Instance method of Model class Employee

-- 
Posted via http://www.ruby-forum.com/.

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