diff options
| author | Michel Etienne | 2015-01-20 15:58:38 +0100 |
|---|---|---|
| committer | Michel Etienne | 2015-01-20 15:58:38 +0100 |
| commit | 810c0135bc448371dddd5232d5339edcb3bbb464 (patch) | |
| tree | fbd263f95d719743e2397c16cc9c71abbb805c4f /app/controllers | |
| parent | bf390d1eaade085449014427ce5fedd05f35a52f (diff) | |
| download | chouette-core-810c0135bc448371dddd5232d5339edcb3bbb464.tar.bz2 | |
stop area copy routes to copy instead of original
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/stop_area_copies_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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") + "<br>" + @stop_area_copy.errors.full_messages.join("<br>") render :action => :new |
