ruby on rails - Searching by full name with Ransack -


i have ransack form on project inherited looks this:

<%- ransack_form_options ||= {} -%> <%- search_field_options ||= {} -%> <%- search_field_options.merge! autocomplete: "off", id: "q" -%>  <div class="search-form">   <%= search_form_for(@q, ransack_form_options) |f| %>     <%= f.text_field search_on, search_field_options %>     <%= f.submit 'search' %>     <%= button_tag '', class: 'cancel-search' %>   <% end %> </div> 

the value of search_on student_first_name_or_student_last_name_or_student_email_cont.

this works searching first name or last name or email. if want search full name or first name or last name or email? how can that?


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -