def detail
unless params[:mls].blank? then
@property = Property.find_by_mls(:mls)
end
if @property.nil? then
# find the property using some other method...
end
end
end
I'm assuming of course that the goal is to get the property object with the given MLS string...