class Wco::PublishersController

def create

def create
  @publisher = Wco::Publisher.new params[:publisher].permit!
  authorize! :create, @publisher
  if @publisher.save
    flash_notice "Created publisher"
  else
    flash_alert "Cannot create publisher: #{@publisher.errors.messages}"
  end
  redirect_to action: 'index'
end