I am using rails-bootstrap-forms gem with devise.
How i can customize form_tag with bootstrap with gem rails-bootstrap-forms.
My code is
<%= form_tag topic_posts_path(@topic) do %>
<%= render 'form' %>
<%= submit_tag 'Create post' %>
<%end%>
and my partial _form is
<h2>Create new post</h2>
<%= label :post, :description %>
<%= text_area :post, :description %>
I want something like
<div class="form-group">
<label for="xyz">xyz</label>
<input type="email" class="form-control" id="xyz" placeholder="Enter xyz">
</div>
any help ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…