Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #308 from robyurkowski/master

Document necessary location of slug column with Globalize
  • Loading branch information...
commit 30e663db31064c53305d1c0dd9f615ce75393552 2 parents 16abf37 + dc78438
@parndt parndt authored
Showing with 5 additions and 5 deletions.
  1. +3 −3 Guide.rdoc
  2. +2 −2 lib/friendly_id/globalize.rb
View
6 Guide.rdoc
@@ -480,8 +480,8 @@ languages. If your application only needs to be localized to one or two
languages, you may wish to consider the {FriendlyId::SimpleI18n SimpleI18n}
module.
-In order to use this module, your model must have a slug column and set the
-field +slug+ as translable with Globalize:
+In order to use this module, your model's translation table must have a slug
+column and must set the field +slug+ as translatable with Globalize:
class Post < ActiveRecord::Base
translates :title, :slug
@@ -549,4 +549,4 @@ For example:
def move_friendly_id_error_to_name
errors.messages[:name] = errors.messages.delete(:friendly_id)
end
- end
+ end
View
4 lib/friendly_id/globalize.rb
@@ -13,8 +13,8 @@ module is most suitable for applications that need to be localized to many
languages, you may wish to consider the {FriendlyId::SimpleI18n SimpleI18n}
module.
-In order to use this module, your model's table must have a slug column, and you
-must set the field +slug+ as translatable with Globalize:
+In order to use this module, your model's translation table must have a slug
+column, and you must set the field +slug+ as translatable with Globalize:
class Post < ActiveRecord::Base
translates :title, :slug
Please sign in to comment.
Something went wrong with that request. Please try again.