2

RailsCast #326 ActiveAttr explains how to create table-less models.

How can one translate the attributes as it is explained for table-based attributes in the rails docs?

user569825
  • 2,369
  • 1
  • 25
  • 45

1 Answers1

4

Instead of going via ActiveRecord (e.g. de.activerecord.attributes.message.subject: Betreff), ActiveModel has to be referenced (e.g. de.activemodel.attributes.message.subject: Betreff).

-- outlined by stephenmurdoch in this comment

Community
  • 1
  • 1
user569825
  • 2,369
  • 1
  • 25
  • 45