Concept.find_by_name(concept_name).id rescue raise("...")
would work here too?

Either way :)