class Contributions::OtherController < ApplicationController before_action :authenticate_user! before_action :set_content_editing # GET /contributions/other def index @current_section = :contributions end private def set_content_editing return unless params[:edit] && current_user.is_admin? @edit_content = true end end