Class: Lcms::Engine::Admin::StandardsController
Instance Method Summary
collapse
document_path, engine_klass, host_engine_path, material_path, root_path, settings, #whoami
Instance Method Details
#edit ⇒ Object
9
|
# File 'app/controllers/lcms/engine/admin/standards_controller.rb', line 9
def edit; end
|
#index ⇒ Object
11
12
13
14
15
16
17
18
|
# File 'app/controllers/lcms/engine/admin/standards_controller.rb', line 11
def index
@query = OpenStruct.new params[:query]
scope = Standard.order(:id)
scope = scope.search_by_name(@query.name) if @query.name.present?
@standards = scope.paginate(page: params[:page])
end
|
#update ⇒ Object
20
21
22
23
24
25
26
|
# File 'app/controllers/lcms/engine/admin/standards_controller.rb', line 20
def update
if @standard.update(standard_params)
redirect_to admin_standards_path, notice: t('.success')
else
render :edit
end
end
|