From 283a9eed064a72c22c381c5025717b592c6cc4fb Mon Sep 17 00:00:00 2001 From: Michel Etienne Date: Fri, 9 Jan 2015 07:54:33 +0100 Subject: manage unauthenticated_root --- app/controllers/registrations_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers') diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index b02d3217a..f563fbb03 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -6,7 +6,7 @@ def accept_user_creation if !Rails.application.config.accept_user_creation - redirect_to root_path + redirect_to unauthenticated_root_path return false else return true -- cgit v1.2.3 From 810c0135bc448371dddd5232d5339edcb3bbb464 Mon Sep 17 00:00:00 2001 From: Michel Etienne Date: Tue, 20 Jan 2015 15:58:38 +0100 Subject: stop area copy routes to copy instead of original --- app/controllers/stop_area_copies_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers') diff --git a/app/controllers/stop_area_copies_controller.rb b/app/controllers/stop_area_copies_controller.rb index 7c1fac8d9..fb429595e 100644 --- a/app/controllers/stop_area_copies_controller.rb +++ b/app/controllers/stop_area_copies_controller.rb @@ -18,7 +18,7 @@ class StopAreaCopiesController < ChouetteController @stop_area_copy = StopAreaCopy.new(params[:stop_area_copy]) @stop_area = parent if @stop_area_copy.save - redirect_to referential_stop_area_path( @referential,parent ), notice: I18n.t("stop_area_copies.new.success") + redirect_to referential_stop_area_path( @referential,@stop_area_copy.copy ), notice: I18n.t("stop_area_copies.new.success") else flash[:error] = I18n.t("stop_area_copies.errors.copy_aborted") + "
" + @stop_area_copy.errors.full_messages.join("
") render :action => :new -- cgit v1.2.3