Module: SearchHelper
- Defined in:
- app/helpers/search_helper.rb
Instance Method Summary collapse
Instance Method Details
#get_search_query_words ⇒ Object
2 3 4 5 6 |
# File 'app/helpers/search_helper.rb', line 2 def get_search_query_words search_query = "" = (params[:q]) unless .html_safe? return .strip.split end |
#search_results?(key) ⇒ Boolean
8 9 10 11 12 |
# File 'app/helpers/search_helper.rb', line 8 def search_results?(key) SocialStream::Search.count(params[:q], current_subject, :key => key) > 0 end |