Module: Tila::Resourceful
Instance Method Summary
collapse
#destroy_object, #save_object
Instance Method Details
#create ⇒ Object
20
21
22
|
# File 'lib/tila/resourceful.rb', line 20
def create
handle_form :new, :created
end
|
#destroy ⇒ Object
28
29
30
|
# File 'lib/tila/resourceful.rb', line 28
def destroy
handle_destroy :destroyed
end
|
#edit ⇒ Object
18
|
# File 'lib/tila/resourceful.rb', line 18
def edit; end
|
#index ⇒ Object
15
|
# File 'lib/tila/resourceful.rb', line 15
def index; end
|
#new ⇒ Object
17
|
# File 'lib/tila/resourceful.rb', line 17
def new; end
|
#show ⇒ Object
16
|
# File 'lib/tila/resourceful.rb', line 16
def show; end
|
#update ⇒ Object
24
25
26
|
# File 'lib/tila/resourceful.rb', line 24
def update
handle_form :edit, :updated
end
|