From 28134c9c637cb714040872b23e9ecc0ae6e779a6 Mon Sep 17 00:00:00 2001 From: "Timothy N. Tsvetkov" Date: Thu, 31 Mar 2011 03:35:05 +0400 Subject: [PATCH] We should select all platforms for the select box if platform creation fails --- app/controllers/platforms_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/platforms_controller.rb b/app/controllers/platforms_controller.rb index b533350d4..8c7bab646 100644 --- a/app/controllers/platforms_controller.rb +++ b/app/controllers/platforms_controller.rb @@ -24,6 +24,7 @@ class PlatformsController < ApplicationController redirect_to @platform else flash[:error] = I18n.t("flash.platform.saved_error") + @platforms = Platform.all render :action => :new end end