class SpeakerController < ApplicationController # def first_time # session[:separator]='~' # redirect_to :action => "index" # end def get_separator '|' end def start_choices lw=last_word(session[:text]) [get_text,get_text+get_overflow]+ get_filtered_filename_part(SentencesDir, lw) #use last_word as regex to search sentences end def filechoices? false end def get_title 'speak something' end def selected(str) session[:spoken]=str end end