RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: tonyktawk
what about content_for :head included scripts ?
thank you : it worked here too :
def self.tokens(query) filter_query = query.gsub(/[^a-zA-Z&\s]/, '') filter_query = filter_query.strip topics = where("LOWER(name) like ?", "%# {filter_query.downcase}%") topics << {id: "<<<#{query}>>>", name: "New: \"##{filter_query}\""} end
Thanks Ryan !!
what about content_for :head included scripts ?
thank you : it worked here too :
def self.tokens(query)
filter_query = query.gsub(/[^a-zA-Z&\s]/, '')
filter_query = filter_query.strip
topics = where("LOWER(name) like ?", "%# {filter_query.downcase}%")
topics << {id: "<<<#{query}>>>", name: "New: \"##{filter_query}\""}
end
Thanks Ryan !!