# Undefined method \`find' for Project:Module

**URL:** <https://www.ruby-forum.com/t/undefined-method-find-for-project-module/221774>\
**Category:** Ruby\
**Created:** [July 30, 2012, 2:21pm UTC](https://www.ruby-forum.com/t/undefined-method-find-for-project-module/221774 "2012-07-30T14:21:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [July 30, 2012, 2:21pm UTC](https://www.ruby-forum.com/t/undefined-method-find-for-project-module/221774/1 "2012-07-30T14:21:50Z")

</div>

undefined method `find’ for Project:Module error

def find\_projects  
user = Person.find(session[:userid])  
projects = Project.find(:all)  
set = []  
projects.each{ |project| set \<\< project if  
project.people.include?(user) }  
puts(set)  
return set  
end

This is my code and i get an error for projects ‘find’ only, not for the  
person ‘find’. I am moving to rails 3.2 from rails 2.3.5

---

<div class="post-metadata">

**Author:** ![dealbitte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/df705f/32.png) [@dealbitte](https://www.ruby-forum.com/u/dealbitte)\
**Post date:** [July 30, 2012, 2:38pm UTC](https://www.ruby-forum.com/t/undefined-method-find-for-project-module/221774/2 "2012-07-30T14:38:13Z")

</div>

Solved: My project name was also Project., So there was a clash
