From: "Iñaki Baz Castillo" Date: 2010-01-13T04:29:11+09:00 Subject: Re: NOOB Question on Instance Variable 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 that is a *web framework* coded in Ruby. Please ask such question in a RubyOnRails maillist. -- Iñaki Baz Castillo