質問

In the select dropdown element it shows instead of the string for City:

<option value="1">#<City:0x007f850028b220></option>
役に立ちましたか?

解決

Add to your City model:

class City
  def to_s
    name
  end
end

Replacing name with relevant attribute.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top