Advertisement
saasbook

Simple edit form

Feb 2nd, 2012
2,401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.27 KB | None | 0 0
  1. %h1 Edit Existing Movie
  2.  
  3. = form_tag movie_path(@movie), :method => :put do
  4.  
  5.   = label :movie, :title, 'Title'
  6.   = text_field :movie, 'title'
  7.  
  8.   -# ...same as new.html.haml!  
  9.   -# Soon we will see a way to DRY it out.
  10.   -# ....
  11.  
  12.   = submit_tag 'Update Movie Info'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement