Class: Rad::Face::Demo::Dialogs

Inherits:
Base
  • Object
show all
Defined in:
lib/face/demo/dialogs.rb

Instance Method Summary collapse

Instance Method Details

#dialogObject



5
6
7
8
9
10
11
12
13
14
# File 'lib/face/demo/dialogs.rb', line 5

def dialog
  logger.info "Sleeping for 1 second"
  sleep 1
  
  if params.valid
    render action: :dialog
  else
    render action: :dialog_form
  end          
end

#dialog_formObject



4
# File 'lib/face/demo/dialogs.rb', line 4

def dialog_form; end

#inplaceObject



17
18
19
20
21
22
# File 'lib/face/demo/dialogs.rb', line 17

def inplace
  logger.info "Sleeping for 1 second"
  sleep 1
  
  @text = params.text
end

#inplace_formObject



16
# File 'lib/face/demo/dialogs.rb', line 16

def inplace_form; end

#showObject



2
# File 'lib/face/demo/dialogs.rb', line 2

def show; end