def set_static_page
      @static_page = StaticPage.friendly.find params[:id]
    rescue ActiveRecord::RecordNotFound
      static_page = StaticPage.new
      static_page.errors.add(:id, 'Wrong ID provided')