Add the Gameplatform MVC to handle the different game platforms
[cs356-p2-videostore.git] / app / views / game / _form.rhtml
index b65208f..69c3904 100644 (file)
@@ -8,7 +8,7 @@
 <%= check_box 'game', 'newrelease' %></p>
 
 <p><label for="game_platform">Platform</label><br/>
-<%= text_field 'game', 'platform'  %></p>
+<%= select 'game', 'platform', Gameplatform.find(:all).collect {|c| [c.name.to_s, c.id] } %></p>
 
 <p><label for="game_genre">Genre</label><br/>
 <%= select 'game', 'game_genre', Gamegenre.find(:all).collect {|c| [c.name.to_s, c.id] } %></p>