Not sure if this helps. However here is my view. I get a `undefined method 
`gsub' for nil:NilClass` but I assume that's from not setting up the 
controller properly to retrieve the results.

          .search_box
            h1 Search and find a mate.
            = form_tag searches_path, method: :get do
              span.secrch_box_bg
                input.text_input name='search' type="text" placeholder="e.g 
(female), likes dogs, has a job)"
                input.find_btn type="submit" value="Find" /
          h4
            | or use our
            a.adv_search href="#" 
              = image_tag "adv_link.png"
              span Advanced Search
          .advanced_search_div.hide
          = form_tag searches_path, method: :get do
              .form_container
                .row style='padding-top:20px;'
                  .col
                    label I am a
                    select.large
                      option male
                      option female
                  .select2
                    .col.col2 style='width:300px;'
                      label Seeking
                      select.large
                        option female
                        option male
                  .select1
                    .col.col3.col33 style='width:175px;'
                      label Ages
                      = select_tag :min_age, 
options_for_select((18..65),18), {class: 'small'}
                      
                  .select5
                    .col.col4
                      label to
                      = select_tag :max_age, 
options_for_select((20..65),65), {class: 'small'}
                      
                  .select4
                    .col.col7 style='margin-left: 10px;width:233px;'
                    = select_tag :ethnicity, options_for_select(['Asian', 
'Black', 'Biracial', 'Indian', 'Hispanic/Latin', 'Middle Eastern', 'Native 
American', 'Pacific Islander', 'White', 'Other']), prompt: 'ethnicity/race'
  
                .row style='padding-top:20px;'
                  .col.col5 style='margin-right:18px;'
                    label Near
                    = text_field_tag :zip_code, nil, placeholder: "enter 
zip here", class: 'text_input'
                    
                  .col.col.col30 style='width:190px;'
                    = select_tag :children, options_for_select(['I want 
kids now','I want one someday']), prompt: 'child preference'

                  .select5
                    .col.col3.col31 style='width:100px;'
                      = select_tag :religion, 
options_for_select(['Agnostic', 'Atheist', 'Christian', 'Catholic', 
'Buddhist', 'Hindu', 'Jewish', 'Muslim', 'Other']), prompt: 'religion'
                .btm_sec style='margin-top:20px;'
                  ul.form_list
                    li
                      a href="#" 
                        = image_tag "form_icon1.png"
                        span.color Save this Search
                    li
                      a href="#" 
                        = image_tag "form_icon2.png"
                        span Load
                    li
                      a href="#" 
                        = image_tag "form_icon3.png"
                        span Reset
                  input.find_btn type="submit" value="Find" /
              .btm_search_detail
                a.simple_search href="#" 
                  = image_tag  "simple_search_icon.png" 
                  span Simple Search

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.

Reply via email to