Class: Hyrax::FeaturedWorkListsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Hyrax::FeaturedWorkListsController
- Defined in:
- app/controllers/hyrax/featured_work_lists_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'app/controllers/hyrax/featured_work_lists_controller.rb', line 3 def create :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 |