X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fvideo%2F_form.rhtml;h=51b9628f86227ecbfdd15402bbbd46795126b0ca;hb=e4597521e3a7365f86731f7d69643cb1067acb5e;hp=10f345a3db87966f8d890b8eb39447a35d35a8d3;hpb=3650c5f411112965a12718b75ccbedde3186fa15;p=cs356-p2-videostore.git diff --git a/app/views/video/_form.rhtml b/app/views/video/_form.rhtml index 10f345a..51b9628 100644 --- a/app/views/video/_form.rhtml +++ b/app/views/video/_form.rhtml @@ -8,12 +8,12 @@ <%= check_box 'video', 'newrelease' %>


-<%= text_field 'video', 'video_genre' %>

+<%= select 'video', 'video_genre', Videogenre.find(:all).collect {|c| [c.name.to_s, c.id] } %>


<%= text_field 'video', 'director' %>


-<%= text_field 'video', 'media' %>

+<%= select 'video', 'media', Media.find(:all).collect {|c| [c.name.to_s, c.id] } %>