Module: Shoulda::Controller
- Defined in:
- lib/shoulda/controller/macros.rb,
lib/shoulda/controller/helpers.rb,
lib/shoulda/controller/formats/xml.rb,
lib/shoulda/controller/formats/html.rb,
lib/shoulda/controller/resource_options.rb
Overview
:nodoc:
Defined Under Namespace
Modules: HTML, Helpers, Macros, XML Classes: ResourceOptions
Constant Summary collapse
- VALID_FORMATS =
Formats tested by #should_be_restful. Defaults to [:html, :xml]
Dir.glob(File.join(File.dirname(__FILE__), 'formats', '*.rb')).map { |f| File.basename(f, '.rb') }.map(&:to_sym)
- VALID_ACTIONS =
Actions tested by #should_be_restful
[:index, :show, :new, :edit, :create, :update, :destroy]