Create a new collection. NAME should be the pluralized name of the collection.
Adds a helper method #{name}_url which returns the URL to the :index operation on this collection.
# File lib/sinatra/rabbit.rb, line 390 def collection(name, &block) raise DuplicateCollectionException if collections[name] collections[name] = Collection.new(name, &block) collections[name].generate end
Generated with the Darkfish Rdoc Generator 2.