문제

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