MailingList


 « Return to Thread: Globalize and ActionMailer?

Translates foreign keys

by Mattias Bodlund :: Rate this Message:

Reply to Author | View in Thread

Can you also translate foreign keys/relations with Globalize. Lets say  
we have a Page with different statuses in different languages.

Lets say we have Page that belongs_to Status.

class Page < ActiveRecord::Base
        translates :status_id
    belongs_to :status
end

I get an error trying this:
undefined method `direction=' for 2:Fixnum

mattias


 « Return to Thread: Globalize and ActionMailer?