Sha256: e9963bf51378e4ea2005749301b3f1b337b4b33d704dcbc14b2bf1717767dd2a
Contents?: true
Size: 462 Bytes
Versions: 19
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
19 entries across 19 versions & 1 rubygems