When you use collection the child block does not yield the individual objects. What I would do is split it in two files.
index.json.rabl
collection @listing
extends "app/view/listings/base"
base.json.rabl
object @listing
child :address do |listing|
attribute :number_and_street unless listing.address_hidden?
end
EDIT: I just noticed you're using the rabl-rails gem. My solution works for 'rabl', I am not too sure about this gem :)