search for: neighborhood_nam

Displaying 1 result from an estimated 1 matches for "neighborhood_nam".

Did you mean: neighborhood_name
2009 Sep 28
7
Basic Rails problem with has_many nil values and permalinks
...odel property with has_many. I find the property and then I need to find the name of the building or the neighborhood that the property belongs to. The property is not always assigned a building or neighborhood. This becomes a problem when createing permalinks with permalink_fu. has_permalink [:neighborhood_name, :building_name, :address] The neighborhood name and building name are defined here in property.rb def neighborhood_name neighborhood.name end def building_name building.name end If the property does not have a neighborhood or a building, then I get an error: The error occ...