Skip to content

Commit

Permalink
Updated to reflect what RP looks like at end of RUby Intro chapter
Browse files Browse the repository at this point in the history
(basic CRUD, no validations, no partials)
  • Loading branch information
armandofox committed Dec 15, 2011
1 parent 9e45c5b commit bad11f1
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
11 changes: 0 additions & 11 deletions app/views/movies/_movie_form.html.haml

This file was deleted.

11 changes: 10 additions & 1 deletion app/views/movies/edit.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,14 @@
%h1 Edit Existing Movie

= form_tag movie_path(@movie), :method => :put do
= render :partial => 'movie_form'

= 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'
10 changes: 9 additions & 1 deletion app/views/movies/new.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,13 @@

= form_tag movies_path do

= render :partial => 'movie_form'
= 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'
1 change: 0 additions & 1 deletion app/views/movies/search_tmdb.html.haml

This file was deleted.

0 comments on commit bad11f1

Please sign in to comment.