edit.html.haml 392 B

12345678910111213141516
  1. -# edit.html.haml using partial
  2. %h1 Edit Existing Movie
  3. = form_tag movie_path(@movie), :method => :put do
  4. = label :movie, :title, 'Title'
  5. = text_field :movie, 'title'
  6. = label :movie, :rating, 'Rating'
  7. = select :movie, :rating, ['G','PG','PG-13','R','NC-17']
  8. = label :movie, :release_date, 'Released On'
  9. = date_select :movie, :release_date
  10. = submit_tag 'Update Movie Info'