Add dependent destroy to projects and samples

show code sample links on user/show and projects/index

fix project.# error from navbar