Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

tonyktawk's Profile

GitHub User: tonyktawk

Comments by

Avatar

what about content_for :head included scripts ?

Avatar

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