Rails 3.1, internalization of values from a habtm relationship?
问题 I got a Event model that HABTM Categories. The relationship works fine and I can insert/retrieve values from Categories with no problem. My questions is, is there a way to interzationalize(I18n) the values of this categories. Category Model class Category < ActiveRecord::Base has_and_belongs_to_many :events end Event Model class Event < ActiveRecord::Base .... has_and_belongs_to_many :categories .... _form.html.haml (for events) - Category.all.each do |category| .field = check_box_tag