I’m using simple_form, nested_form and Twitter Bootstrap and trying to put the “Remove Link” from nested_form on the same line as the object.
Right now it looks like this:
and I want it to look like this:
Here’s what my code looks like:
<%= cform.simple_fields_for :licensings do |lf| %>
<%= lf.input :state, :collection => us_states, :wrapper => false %>
<%= lf.link_to_remove "Remove this Licensing", :class => 'btn btn-mini btn-danger' %>
<% end %>
I’ve tried putting the second link_to_remove inside a block for the first lf.input but then the actual dropdown doesn’t appear. I’ve looked through simple_form’s code but I wasn’t able to track down if there was a way to accomplish this.
Thanks for the answers but I couldn’t get either to work. I found the answer on the Google Groups mailing list:
https://groups.google.com/forum/?fromgroups#!topic/plataformatec-simpleform/hL9ek5svyAU