Hey there, i am trying to set a site by the site_id of one of its
children, i think that after i destroy the child it looses the site i
am trying to create, the following code gives me an error about
couldn’t find site with id=0
@site_note = SiteNote.find(params[:id])
@site = Site.find(@site_note.site_id)
redirect_to :action => ‘list’, :id => @site
any ideas ?