Sha256: 4c26a3409e857784ba148d3fab8959cbc4dee14e10ff083591e117985bd9f846
Contents?: true
Size: 462 Bytes
Versions: 22
Compression:
Stored size: 462 Bytes
Contents
class FeaturedWorkListsController < ApplicationController def create authorize! :update, FeaturedWork FeaturedWorkList.new.featured_works_attributes = list_params[:featured_works_attributes] respond_to do |format| format.html { redirect_to root_path } format.json { head :no_content } end end protected def list_params params.require(:featured_work_list).permit(featured_works_attributes: [:id, :order]) end end
Version data entries
22 entries across 22 versions & 1 rubygems