Created
March 19, 2019 02:50
-
-
Save younthu/37eccfa17dc019853cc00a2a89222d64 to your computer and use it in GitHub Desktop.
ransack search ActsAsTaggableOn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Model: | |
class People < ActiveRecord | |
acts_as_taggable_on :genders,:features | |
end | |
index.html.erb | |
<%= search_form_for @q do |f| %> | |
<%= f.search_field :features_name_cont, class: "form-control", placeholder:type here" %> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment