Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %h1 Edit Existing Movie
- = form_tag movie_path(@movie), :method => :put do
- = label :movie, :title, 'Title'
- = text_field :movie, 'title'
- -# ...same as new.html.haml!
- -# Soon we will see a way to DRY it out.
- -# ....
- = submit_tag 'Update Movie Info'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement