class CollectionController

Public Instance Methods

isolated_namespace() click to toggle source
# File test/collection_responder_test.rb, line 30
def isolated_namespace
  respond_with MyEngine::Business
end
namespaced() click to toggle source
# File test/collection_responder_test.rb, line 14
def namespaced
  respond_with :admin, Address.new
end
nested() click to toggle source
# File test/collection_responder_test.rb, line 18
def nested
  respond_with User.new, Address.new
end
only_symbols() click to toggle source
# File test/collection_responder_test.rb, line 22
def only_symbols
  respond_with :admin, :addresses
end
single() click to toggle source
# File test/collection_responder_test.rb, line 10
def single
  respond_with Address.new
end
uncountable() click to toggle source
# File test/collection_responder_test.rb, line 34
def uncountable
  respond_with News.new
end
with_location() click to toggle source
# File test/collection_responder_test.rb, line 26
def with_location
  respond_with Address.new, :location => "given_location"
end