| Class | SpeakerController |
| In: |
app/controllers/speaker_controller.rb
|
| Parent: | ApplicationController |
# File app/controllers/speaker_controller.rb, line 18
18: def get_title
19: 'speak something'
20: end
# File app/controllers/speaker_controller.rb, line 21
21: def selected(str)
22: session[:spoken]=str
23: end
def first_time
session[:separator]='~'
redirect_to :action => "index"
end
# File app/controllers/speaker_controller.rb, line 6
6: def start_choices
7: lw=last_word(session[:text])
8: g=Giver.new
9:
10: [get_text,get_text+get_overflow]+g.get_matching_sentences(
11: SentencesDir, lw)
12: #use last_word as regex to search sentences
13: end