We should select all platforms for the select box if platform creation fails

This commit is contained in:
Timothy N. Tsvetkov 2011-03-31 03:35:05 +04:00
parent d49e866951
commit 28134c9c63
1 changed files with 1 additions and 0 deletions

View File

@ -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