hw-rottenpotatoes-rails-intro/app/views/movies/edit.html.haml

17 lines
392 B
Plaintext

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