Displaying 2 results from an estimated 2 matches for "link_to_remove_fields".
2011 Mar 01
0
Association data within a fields_for
...''t figure out how to do the same thing from within the fields_for
on the edit page.
<%= f.fields_for :schools_users do |f| %>
<tr>
<td><%= NEED USER NAME HERE %></td>
<td><%= f.select(:user_role, active_role_options)%></td>
<td><%= link_to_remove_fields ''Delete'', f %></td>
</tr>
<% end %>
Thanks for any help!
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCG...
2011 May 21
0
Jquery UI with rails nested forms
...t;>
$(''.datePicker'').each(function() {
$(this).datepicker();
});
</script>
<div class ="fields">
<%= f.select(:assessmethods_id,@types,:include_blank=>true) %>
<%= f.text_field(:assessdate,:class => "datePicker") %>
<%= link_to_remove_fields("remove", f) %>
</div>
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, sen...