Skip to content
Snippets Groups Projects
Commit 58f2d7dd authored by pabois's avatar pabois
Browse files

correctifs

parent 8ee21a97
No related branches found
No related tags found
No related merge requests found
class Admin::Education::ApplicationController < Admin::ApplicationController
def breadcrumb
super
add_breadcrumb Education.model_name.human
if @program
short_breadcrumb
else
super
add_breadcrumb Education.model_name.human
end
end
end
......@@ -30,7 +30,6 @@ class Admin::Education::ProgramsController < Admin::Education::ApplicationContro
end
def update
byebug
if @program.update(program_params)
redirect_to [:admin, @program], notice: t('admin.successfully_updated_html', model: @program.to_s)
else
......
......@@ -4,6 +4,7 @@ module WithSlug
included do
validates :slug,
uniqueness: { scope: :university_id },
format: { with: /\A[a-z0-9\-]+\z/, message: "ne peut contenir que des lettres minuscules, des chiffres et des traits d'union." }
format: { with: /\A[a-z0-9\-]+\z/, message: "ne peut contenir que des lettres minuscules, des chiffres et des traits d'union." },
allow_blank: true
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment