I'm new in this forum and new with Rails.
I'm getting the error: undefined method `description' for nil:NilClass on this line:
<%= @realty.realty_type.description %>
Between, when I use the line bellow I got no erros, just the realty_type ID:
<%= @realty.realty_type %>
What I'm forgetting and why I can't get that property of the realty_type?