Undefined method `find' for Project:Module

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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs