Module: Resourceful

Defined in:
lib/resourceful/base.rb,
lib/resourceful/maker.rb,
lib/resourceful/builder.rb,
lib/resourceful/response.rb,
lib/resourceful/serialize.rb,
lib/resourceful/default/urls.rb,
lib/resourceful/default/actions.rb,
lib/resourceful/default/responses.rb,
lib/resourceful/default/callbacks.rb,
lib/resourceful/default/accessors.rb

Overview

The module containing all the code for make_resourceful.

For methods available in the make_resourceful block, see Resourceful::Builder.

For helper methods and methods you can override to customize the behavior of your actions, see Resourceful::Default::Accessors and Resourceful::Default::URLs.

Defined Under Namespace

Modules: Base, Default, Maker, Serialize Classes: Builder, Response

Constant Summary

ACTIONS =

The default actions generated by make_resourceful.

[:index, :show, :edit, :update, :create, :new, :destroy]
MODIFYING_ACTIONS =

The actions that modify the database.

[:update, :create, :destroy]
PLURAL_ACTIONS =

The actions that act on multiple records.

[:index]
SINGULAR_ACTIONS =

The actions that act on just one record.

ACTIONS - PLURAL_ACTIONS
SINGULAR_PRELOADED_ACTIONS =

The actions that act on just one record.

SINGULAR_ACTIONS - [:new, :create]