We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I followed this article to implement translations through a admin page
This works great in my localhost, but when i push to heroku this message appears:
"/app/app/models/translation.rb:1:in `': superclass mismatch for class Translation (TypeError)"
My MODEL TRanslation:
class Translation < ApplicationRecord end
Can anyone help me, i don't have any idea to solve this
The text was updated successfully, but these errors were encountered:
Why do you need your own Translation model? There is Translation model defined in this gem - https://github.com/svenfuchs/i18n-active_record/blob/master/lib/i18n/backend/active_record/translation.rb So you can use I18n::Backend::ActiveRecord::Translation to manage translations
Translation
I18n::Backend::ActiveRecord::Translation
Sorry, something went wrong.
@eduardorph you should either to remove Translation = I18n::Backend::ActiveRecord::Translation from initializers, or get rid of Translation model.
Translation = I18n::Backend::ActiveRecord::Translation
It looks like the issue has been resolved
No branches or pull requests
I followed this article to implement translations through a admin page
This works great in my localhost, but when i push to heroku this message appears:
"/app/app/models/translation.rb:1:in `': superclass mismatch for class Translation (TypeError)"
My MODEL TRanslation:
class Translation < ApplicationRecord
end
Can anyone help me, i don't have any idea to solve this
The text was updated successfully, but these errors were encountered: