Added private method for rails strong params, refactored to use before_filter to find doc by id