Class: FeaturedWorkListsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/featured_work_lists_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



2
3
4
5
6
7
8
9
# File 'app/controllers/featured_work_lists_controller.rb', line 2

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