Added before_filter to find project. TIL:remove empty actions in controller if there are templates corresponding to those actions.