Skip to content

Instantly share code, notes, and snippets.

@corny
Created August 27, 2012 13:05
Show Gist options
  • Save corny/3488257 to your computer and use it in GitHub Desktop.
Save corny/3488257 to your computer and use it in GitHub Desktop.
seo slugs
class MyModel < ActiveRecord::Base
def to_param
"#{id}-#{name}".parameterize
end
end
de:
i18n:
transliterate:
rule:
ä: ae
Ä: ae
ü: ue
Ü: ue
ö: oe
Ö: oe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment