<% form_for(@movie) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :title %><br />
    <%= f.text_field :title %>
  </p>
  <p>
    <%= f.label :year_released %><br />
    <%= f.select :year_released, curr_years %>
  </p>
  <p>
    <%= f.label :language %><br />
    <%= f.select :language, languages %>
  </p>
  <p>
    <%= f.label :rating %><br />
    <%= f.select(:rating,[ ['PG-13', 'PG-13'],
	                         ['NC-17', 'NC-17'],
	                         ['ALL', 'ALL'],
	                         ['R', 'R'],
	                         ['X', 'X'] ], 
	                        :selected => 'ALL') %>
  </p>
  <p>
    <%= f.label :length, "Length HH:MM" %><br />
    <%= f.text_field :length, :size => 6 %>
  </p>
  <p>
    <%= f.label :black_and_white %><br />
    <%= f.check_box :black_and_white %>
  </p>
  <p>
    <%= f.label :star_rating %><br />
    <%= f.select(:star_rating,[ ['*', '*'],
	                         ['**', '**'],
	                         ['***', '***'],
	                         ['****', '****'],
	                         ['*****', '*****'] ], 
	                        :selected => '***') %> 
  </p>
  <p>
    <%= f.label :genre_id %><br />
    <%= f.select :genre_id, 
    Genre.find(:all, :order => 'genre_name').collect {|g| [g.genre_name, g.id]} %>
  </p>
  <p>
    <%= f.label :synopsis %><br />
    <%= f.text_area :synopsis, :cols => 80, :rows => 5, :style=>"background-color : #f58830" %>
  </p>
  <p>
    <%= f.submit 'Submit' %>
  </p>
<% end %>