Ruby on Rails Friday, February 16, 2018

nevermind.

On Thursday, February 8, 2018 at 6:17:02 PM UTC-5, Joe Guerra wrote:
I've setup ransack to do some full text search...

but the search text box isn't formated with bootstrap styling.  I've pasted my code below.  The top has the ransack search , below the bootstrap styling (need to combine them).  

Any hints?



 <div class="navbar-form navbar-left" >

<%= search_form_for @search do |f| %>

<div class="field" >

<%#= f.label :title_or_template_cont %>



<%= f.text_field :location_or_desc_cont , placeholder: "Search" %>

<!--
<div class="actions">
-->
<%= f.submit "Search" %>
<!--
</div>
-->

</div>

<% end %>
</div>

<!--- bootstrap styled search box below, need to combine style with above search -->

<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>

Thanks!
Joe

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9c552f11-af08-4232-ba60-100f0fa65b07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment