Hey all been working on my first app that is to help track projects
and who's working on them.  I want to be able in the project
controller find employees in the employee controller by project_id,
and then list them on my show defenition.

I thought this would work but ofcourse it doesn't and I can't find any
examples in my google searches.

 def show
                @project = Project.find(params[:id])
                @employees = Employee.find(params[:project_id])
end

If I change the @employees to Employee.find(:all) it will just list
all employees even if they don't associate with the project.

any help would be teriffic!
--~--~---------~--~----~------------~-------~--~----~
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