Ruby on Rails Thursday, June 28, 2012

On Jun 27, 7:56 pm, Francisco Vallejo Luna <neother...@gmail.com>
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

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

No comments:

Post a Comment