Class: PowerResource::BaseController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- PowerResource::BaseController
show all
- Includes:
- BaseHelper
- Defined in:
- app/controllers/power_resource/base_controller.rb
Instance Method Summary
collapse
Methods included from BaseHelper
#attribute_value_for, #resource_association_links_for, #resource_associations, #resource_attribute_human_name_for, #resource_attributes, #resource_form_path, #resource_human_attributes, #resource_human_name, #resource_human_name_for, #resource_name, #resource_non_human_attributes, #resource_title
Instance Method Details
#create ⇒ Object
8
9
10
|
# File 'app/controllers/power_resource/base_controller.rb', line 8
def create
create! { collection_url }
end
|
#update ⇒ Object
12
13
14
|
# File 'app/controllers/power_resource/base_controller.rb', line 12
def update
update! { collection_url }
end
|