projects
/
cs356-p2-videostore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add Login system
[cs356-p2-videostore.git]
/
app
/
views
/
video
/
_form.rhtml
diff --git
a/app/views/video/_form.rhtml
b/app/views/video/_form.rhtml
index
c990254
..
51b9628
100644
(file)
--- a/
app/views/video/_form.rhtml
+++ b/
app/views/video/_form.rhtml
@@
-14,6
+14,6
@@
<%= text_field 'video', 'director' %></p>
<p><label for="video_media">Media</label><br/>
-<%=
text_field 'video', 'media'
%></p>
+<%=
select 'video', 'media', Media.find(:all).collect {|c| [c.name.to_s, c.id] }
%></p>
<!--[eoform:video]-->