Sha256: ba95885f472de29178afdee6607b1ae6fec77950e7dc81d0b601eda068ecb192
Contents?: true
Size: 639 Bytes
Versions: 1
Compression:
Stored size: 639 Bytes
Contents
class Spotlight::ExhibitsController < Spotlight::ApplicationController before_filter :authenticate_user! before_filter :default_exhibit include Blacklight::SolrHelper authorize_resource def edit end def update if @exhibit.update(exhibit_params) redirect_to main_app.root_path, notice: "The exhibit was saved." else render action: :edit end end protected def exhibit_params params.require(:exhibit).permit( :title, :subtitle, :description, contact_emails_attributes: [:email] ) end def default_exhibit @exhibit = Spotlight::Exhibit.default end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight-spotlight-0.0.1 | app/controllers/spotlight/exhibits_controller.rb |