Module: NetherController

Defined in:
app/controllers/nether_controller.rb

Instance Method Summary collapse

Instance Method Details

#render_nether(partial, delay = 3) ⇒ Object

Captures the request and renders the partial

Signatures

render_nether(partial)

render_nether(partial, delay)


10
11
12
13
14
15
# File 'app/controllers/nether_controller.rb', line 10

def render_nether(partial, delay=3)
    if request.xhr?
    sleep(delay)
    render :partial => partial
  end
end