Created
November 24, 2012 23:58
-
-
Save tbuehlmann/4141867 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%u Στοιχεία για λέξη #{@word} | |
Αρ. Καταχώρισης: #{@id} | |
Sha1: #{@sha1} | |
Web ranking: #{@wr} at date: #{@wrd} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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