Module: Tila::Resourceful

Extended by:
ActiveSupport::Concern
Includes:
Actionable, FormHandler, Params, ResourceLoaders, ResourcefulUrls
Defined in:
lib/tila/resourceful.rb

Instance Method Summary collapse

Methods included from SaveDestroy

#destroy_object, #save_object

Instance Method Details

#createObject



20
21
22
# File 'lib/tila/resourceful.rb', line 20

def create
  handle_form :new, :created
end

#destroyObject



28
29
30
# File 'lib/tila/resourceful.rb', line 28

def destroy
  handle_destroy :destroyed
end

#editObject



18
# File 'lib/tila/resourceful.rb', line 18

def edit;  end

#indexObject



15
# File 'lib/tila/resourceful.rb', line 15

def index; end

#newObject



17
# File 'lib/tila/resourceful.rb', line 17

def new;   end

#showObject



16
# File 'lib/tila/resourceful.rb', line 16

def show;  end

#updateObject



24
25
26
# File 'lib/tila/resourceful.rb', line 24

def update
  handle_form :edit, :updated
end