You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our default locale is Brazilian Portuguese, so I18n.locale is :"pt-br"
Following the guides, I tried adding a column name slug_pt_br to my Model, but as you see from the error message FriendlyId is trying to look for a column named slug_pt-br.
Should I really set my column name using a hyphen?
The text was updated successfully, but these errors were encountered:
Taking a look at the source code, I think that the solution would be add .to_s.underscore to I18n.locale in FriendlyId::SimpleI18n::Configuration slug_column method
def slug_column
"#{super}_#{I18n.locale.to_s.underscore}"
end
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Our default locale is Brazilian Portuguese, so
I18n.locale
is:"pt-br"
Following the guides, I tried adding a column name
slug_pt_br
to my Model, but as you see from the error message FriendlyId is trying to look for a column namedslug_pt-br
.Should I really set my column name using a hyphen?
The text was updated successfully, but these errors were encountered: