And just because it is always good to keep things together, even searching is not the worst option
If using rails is not any bigger issue: