El Martes, 12 de Enero de 2010, BlueHandTalking escribi > I have a class photo. It belongs_to a project. > > In my ProjectsController I am creating 2 instance variables: > > @displayphoto = Photo.find_by_project_id(params[:id]) > > ...and also > > @photo = @project.build_photo Hi, this is a list of Ruby and your question is related to RubyOnRails thats a *web framework* coded in Ruby. Please ask such question in a RubyOnRails maillist. -- Iñáki Baz Castillo <ibc / aliax.net>