Salathe Devadmins
Joined
2,410 Experience
24 Lessons Completed
0 Questions Solved
Activity
Posted in ActionText and Globalize error
suppose you use globalize gem and did the migration according to globalize docs ->
class CreateTranslation < ActiveRecord::Migration[6.0]
def up
Business.create_translation_table!({name: :string, description: text}, { migrate_data: true })
end
def down
Business.drop_translation_table! migrate_data: true
end
end
remove from model:
globalize_accessors
has_rich_text :description
and try to use the following in the view:
<%= rich_text_area_tag "business[name]", f.object.name %>
<%= rich_text_area_tag "business[description]", f.object.description %>