class Wco::SitemapPathsController
def create
def create authorize! :create, Wco::SitemapPath @spath = Wco::SitemapPath.new params[:spath].permit! if @spath.save flash_notice 'Success.' redirect_to wco.site_path(params[:spath][:site_id]) else flash_alert "Could not save spath: #{@spath.errors.full_messages}" render 'new' end end