daily pastebin goal
10%
SHARE
TWEET

Untitled

a guest Feb 19th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <h1>Add Person</h1>
  2. <%= debug @person %>
  3.  
  4. <%= error_messages_for :person %>
  5. <% form_for :person, :url => add_path do |f| -%>
  6. <p><label for="name">Name</label><br/>
  7. <%= f.text_field :name %></p>
  8.  
  9. <p><label for="position">Position</label><br/>
  10. <%= f.text_field :position %></p>
  11. <!-- this was trying to hard set the state --!>
  12. <%= f.hidden_field(:state, :value => "unclaimed") %>
  13.  
  14. <p><%= submit_tag 'Add' %></p>
  15. <% end -%>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top