Guirec Corbel
2012-Dec-18 01:07 UTC
problem with globalize3 : undefined method `create_translation_table!''
Hello, I have the problem posted at this address : https://github.com/svenfuchs/globalize3/issues/172. I created a new project with a new model and I integrated globalize3. I created a migration like this : class CreatePages < ActiveRecord::Migration def up create_table :pages do |t| t.timestamps end Page.create_translation_table! title: :string, body: :body end def down drop_table :pages Page.drop_translation_table! end end When I migrate I have this error : `undefined method `create_translation_table!'' for Page(Table doesn''t exist):Class`. When I rollback I have this error : `undefined method `drop_translation_table!'' for #<Class:0x00000001eb4640>`. I don''t know what to do. Do you have a solution? Thanks! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Maybe Matching Threads
- Globalize3 gem, upload data from CSV
- + migrations in camping
- walkthrough: Rails 2.0 startup process
- Newbee met problems when do some i18n on rails
- Validation error message header not translated (activerecord.errors.template.header seems to be ignored in YAML localization file)