Weird select on Rails

Hello all!!!

Did I do something wrong? I’m becoming crazy with this simple task.

This issue comes from a view which is not printing the country of a
city.

Please, can anybody help me?

https://lh4.googleusercontent.com/-ySe4hFj1u4E/T-tWxmIeZlI/AAAAAAAAAKk/bvD76e-B4j8/s1600/error.jpg

On Jun 27, 7:56pm, Francisco Vallejo L. [email protected]
wrote:

Hello all!!!

Did I do something wrong? I’m becoming crazy with this simple task.

This issue comes from a view which is not printing the country of a city.

Please, can anybody help me?

https://lh4.googleusercontent.com/-ySe4hFj1u4E/T-tWxmIeZlI/AAAAAAAAAK...

At a wild guess you’re using attr_accessor on some of your model’s
attributes. Don’t, rails generates accessors for database attributes
automatically (perhaps you were thinking of attr_accessible)

Fred