pg_search
https://github.com/casecommons/pg_search
Ruby
pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search
ExtractsPath#extract_ref_without_atom
If we have an ID of 'foo.atom', and the controller provides Atom and HTML formats, then we have to check if the request was for the Atom version of the ID without the '.atom' suffix, or the HTML version of the ID including the suffix. We only check this if the version including the suffix doesn't match, so it is possible to create a branch which has an unroutable Atom feed.
Edit
git clone [email protected]:casecommons/pg_search.git
cd pg_search
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-ExtractsPath-extract_ref_without_atom-for-pr
# Commit to gitgit add git commit -m "better docs for ExtractsPath#extract_ref_without_atom"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-ExtractsPath-extract_ref_without_atom-for-pr
hub pull-request
# Celebrate!