We should select all platforms for the select box if platform creation fails
This commit is contained in:
parent
d49e866951
commit
28134c9c63
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue