class Wco::HeadlinesController
def update
def update @headline = Wco::Headline.find params[:id] authorize! :update, @headline params[:headline][:tag_ids].delete '' if @headline.update params[:headline].permit! flash_notice @headline else flash_alert @headline end redirect_to action: :index end