controller render_partial and set404 methods