Displaying 1 result from an estimated 1 matches for "remove_contact_link".
2009 Sep 21
0
Polymorphic form
...<p>
Phone Number<br/>
<%= contact_form.hidden_field :type %><br/>
<%= contact_form.select :label, PhoneNumber::LABELS, :selected
=> PhoneNumber::LABELS.first %>
Area + Phone <%= contact_form.text_field :value %><br/>
<%= remove_contact_link :phone_number, ''remove'' %>
</p>
<% end -%>
</div>
Everything else gets saved just fine, but it complains on validation
about the lack of a type field:
- Person contacts type can''t be blank
I have it saving like so, in users_controller.rb
def...