Class SelectorController
In: app/controllers/selector_controller.rb
Parent: ApplicationController

Methods

Public Instance methods

[Source]

    # File app/controllers/selector_controller.rb, line 12
12:         def filechoices?
13:                 false
14:         end

[Source]

    # File app/controllers/selector_controller.rb, line 15
15:   def first_time
16:                 session[:modules] ||= ['selector']
17:                 session[:choices]=nil
18:         redirect_to :action => "index"
19:   end

[Source]

    # File app/controllers/selector_controller.rb, line 20
20:   def get_separator
21:         ','
22:   end

[Source]

    # File app/controllers/selector_controller.rb, line 24
24:   def get_title
25:                 'make your selection'
26:         end

[Source]

    # File app/controllers/selector_controller.rb, line 27
27:   def selected(str)
28:                 if str =~ /[A-Z]/
29:                         session[:modules]-= [str.downcase]
30:                 else
31:                         session[:modules].insert(1,str)
32:                 end
33: 
34:         end

[Source]

    # File app/controllers/selector_controller.rb, line 2
 2:   def start_choices
 3:                 %w{picbrowser easypic texteditor words abcd
 4: nextword presentation recognize wikinext keywords
 5: speaker wikipedia nim font emailaddr bulletin crop
 6: picedit scroll scrolldown backspace sentences}.
 7:                         collect! do |i|
 8:                                 get_modules.include?(i.downcase) ?
 9:                                         i.upcase: i.downcase
10:                         end
11:         end

[Validate]