Advertisement
Guest User

Untitled

a guest
Dec 20th, 2011
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.94 KB | None | 0 0
  1. <h1>Create new contact</h1>
  2. <% form_for :contact, :url => { :action=>'create'} do |f| %>
  3. <p><label for="contact_first_name">First Name:</label>
  4.     <%= f.text_field 'contact', 'first_name'  %></p>
  5.  
  6. <p><label for="contact_last_name">Last Name:</label>
  7.     <%= f.text_field  'contact', 'last_name'%></p>
  8.  
  9. <p><label for="contact_address">Address:</label>
  10.     <%= f.text_field  'contact', 'address'%></p>
  11.  
  12. <p><label for="contact_city">City:</label>
  13.     <%= f.text_field 'contact',  'city'%></p>
  14.  
  15. <p><label for="contact_state">State:</label>
  16.     <%= f.text_field  'contact', 'state'%></p>
  17.  
  18. <p><label for="contact_country">Country:</label>
  19.     <%= f.text_field 'contact',  'country'%></p>
  20.  
  21. <p><label for="contact_phone">Phone:</label>
  22.     <%= f.text_field  'contact', 'phone'%></p>
  23.  
  24. <p><label for="contact_first_email">EMail:</label>
  25.     <%= f.text_field 'contact',  'email'%></p>
  26.  
  27. <%= f.submit "create" %>
  28. <% end %>
  29. <p><%= link_to 'Back', {:action => 'index'}%> </p>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement