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

15 lines
327 B
Plaintext

%h1 Create New Movie
= form_tag movies_path 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 'Save Changes'