Class StepsizeController
In: app/controllers/stepsize_controller.rb
Parent: ApplicationController

Methods

Public Instance methods

[Source]

    # File app/controllers/stepsize_controller.rb, line 27
27:         def designers
28: 'Co-Designer:<a href="http://anmolanand.wordpress.com/">
29: Anmol Anand</a>'
30:         end

[Source]

    # File app/controllers/stepsize_controller.rb, line 31
31:         def extras
32:                 @numbers = session[:stepsize]
33:                 #session[:title] = "stepsize = #{session[:stepsize]}"
34:                 @title= "stepsize = #{session[:stepsize]}"
35:         end

[Source]

    # File app/controllers/stepsize_controller.rb, line 5
 5:         def first_time
 6: #
 7:                 session[:selected_item]=0
 8:                 session[:choices]=nil
 9:                 redirect_to :action => "index"
10: 
11:         end

[Source]

   # File app/controllers/stepsize_controller.rb, line 2
2:         def get_separator
3:                 ','
4:         end

def reformat_choices end

[Source]

    # File app/controllers/stepsize_controller.rb, line 21
21:         def selected(str)
22:                 logger.info "selected step #{str}"
23:                 session[:stepsize] = str
24: 
25:                 session[:choices]=nil
26:         end

def get_stepsize

      session[:stepsize] ||= 10

end

[Source]

    # File app/controllers/stepsize_controller.rb, line 15
15:         def start_choices
16:                  ['1,2,5,7,10',
17:                 '12,15,17,20']
18:         end

[Validate]