redirect instead of render in assignments controller