The issue in the context of Ruby on Rails 3.0.3.
Given: a model (aka essence, aka table) with 30+ fields (aka attributes, accessors). there are scaffoldings view (link to source
) in which plain text is displayed name and field value. The trouble is that here in the view fixed the field names. I wish it was variable as connected to the module localization.
Required: record is not in plain text all 30+ fields in HTML and pass through all model attributes and for each attribute to take the i18n-name (Lastname or Surname). Well, withdraw.
@request.to_a.each does not help, because the type attribute lastname is like accessors, that is, methods (?).
Maybe somewhere I misunderstood something, please explain.https://gist.github.com/713493