Skip to content

Instantly share code, notes, and snippets.

@tbuehlmann
Created November 24, 2012 23:58
Show Gist options
  • Save tbuehlmann/4141867 to your computer and use it in GitHub Desktop.
Save tbuehlmann/4141867 to your computer and use it in GitHub Desktop.
%u Στοιχεία για λέξη #{@word}
Αρ. Καταχώρισης: #{@id}
Sha1: #{@sha1}
Web ranking: #{@wr} at date: #{@wrd}
get '/search/:word' do
@word = URI.decode(params[:word].to_s)
data = @db.list_word(word)
@id = data[0]
@sha1 = data[2]
@wr = data[3] # web ranking
@wrd = data[4] # web ranking date
haml :search
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment