Sha256: 4b5cca6bbd581177a3d1b3522a295936345b768b5894e11c685e3f48295b006c
Contents?: true
Size: 402 Bytes
Versions: 71
Compression:
Stored size: 402 Bytes
Contents
class Admin::PagePartsController < Admin::ResourceController def create model.attributes = page_parts_params @controller_name = 'page' @template_name = 'edit' render partial: 'page_part', object: model, locals: { page_part_counter: params[:index].to_i } end private def page_parts_params params.require(:page_part).permit(:name, :filter_id, :content) end end
Version data entries
71 entries across 71 versions & 1 rubygems