Add get_resource method handling ActiveRecord::RecordNotFound