Sha256: 08a10833f6173454bb4311a3e02177728337f12e79fbcf2819e29695db51adc9

Contents?: true

Size: 359 Bytes

Versions: 15

Compression:

Stored size: 359 Bytes

Contents

#This files makes the framework able to receive calls from the Rhodes framework from RhoMobile.
class KnjController < Rho::RhoController
  #GET /Server
  def index
    render
  end
  
  def html_links
    System.open_url(@params["url"])
  end
  
  def callback
    block = $rhodes.callbacks(@params["callback_id"])
    block.call(:params => @params)
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
knjrbfw-0.0.23 lib/knj/knj_controller.rb
knjrbfw-0.0.22 lib/knj/knj_controller.rb
knjrbfw-0.0.21 lib/knj/knj_controller.rb
knjrbfw-0.0.20 lib/knj/knj_controller.rb
knjrbfw-0.0.19 lib/knj/knj_controller.rb
knjrbfw-0.0.18 lib/knj/knj_controller.rb
knjrbfw-0.0.17 lib/knj/knj_controller.rb
knjrbfw-0.0.16 lib/knj/knj_controller.rb
knjrbfw-0.0.15 lib/knj/knj_controller.rb
knjrbfw-0.0.14 lib/knj/knj_controller.rb
knjrbfw-0.0.13 lib/knj/knj_controller.rb
knjrbfw-0.0.12 lib/knj/knj_controller.rb
knjrbfw-0.0.11 lib/knj/knj_controller.rb
knjrbfw-0.0.10 lib/knj/knj_controller.rb
knjrbfw-0.0.9 lib/knj/knj_controller.rb