I\'m trying to make some restaurant list. I associated two tables, and then write this code.
class Restaurant < ActiveRecord::Base has_many :resta
Your restauration have multiple 'restaurant_translations'.
Example, for first you can write td = restaurant.restaurant_translations.first.try(:restaurantname)
td = restaurant.restaurant_translations.first.try(:restaurantname)