Class: Fe::ReferencePagesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/fe/reference_pages_controller.rb

Constant Summary collapse

MONTHS_KNOWN_OPTIONS =
[
  ["3 months", 3],
  ["6 months", 6],
  ["1 year", 12],
  ["2 years", 24],
  ["3 or more years", 36]
]

Instance Method Summary collapse

Instance Method Details

#editObject

Allow applicant to edit reference /applications/1/reference_page/edit js: provide a partial to replace the answer_sheets page area html?: return a full page for editing reference independantly (after submission)



23
24
25
26
27
28
# File 'app/controllers/fe/reference_pages_controller.rb', line 23

def edit
  @references = @application.reference_sheets

  # NEXT: skipping all the fancy answer sheets stuff since all custom pages come after those
  @next_page = next_custom_page(@application, 'reference_page')
end

#updateObject



30
31
32
33
# File 'app/controllers/fe/reference_pages_controller.rb', line 30

def update
  #update_references
  head :ok
end