Advertisement
Guest User

Untitled

a guest
Jan 26th, 2017
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.52 KB | None | 0 0
  1. <%= form_for @movie, method: @method, url: {controller: 'movies', action: @action} do |f| %>
  2.   <div class="field">
  3.     <%= f.label :title %>
  4.     <%= f.text_field :title %>
  5.   </div>
  6.   <div class="field">
  7.     <%= f.label :release_date %>
  8.     <%= f.date_select :release_date,
  9.           start_year: 1900,
  10.           order: [:day, :month, :year] %>
  11.   </div>
  12.   <div class="field">
  13.     <%= f.label :description %>
  14.     <%= f.text_area :description %>
  15.   </div>
  16.  
  17.   <div class="actions">
  18.     <%= f.submit %>
  19.   </div>
  20. <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement