Simple_form how to make accept terms checkbox inline
问题 <p><%= f.input :terms, :as => :boolean, :label => false, :boolean_style => :inline %> Accept <%= link_to "Terms of use", terms_path,:remote => true %> and <%=link_to "privacy Policy", privacy_path, :remote => true%></p> It ends up looking like this What is the best way to line them up on the same line. 回答1: Here's a rather simple way: <%= content_for(:the_links) do %> Accept <%= link_to "Terms of use", terms_path,:remote => true %> and <%=link_to "privacy Policy", privacy_path, :remote =>