class KnjController

This files makes the framework able to receive calls from the Rhodes framework from RhoMobile.

Public Instance Methods

callback() click to toggle source
# File lib/knj/knj_controller.rb, line 12
def callback
  block = $rhodes.callbacks(@params["callback_id"])
  block.call(:params => @params)
end
index() click to toggle source

GET /Server

# File lib/knj/knj_controller.rb, line 4
def index
  render
end
youtube_embed() click to toggle source
# File lib/knj/knj_controller.rb, line 17
def youtube_embed
              @iframe_height = System.get_property("screen_height").to_i - 40
              render :file => "Knj/rhodes/youtube_embed.erb"
end
youtube_open() click to toggle source
# File lib/knj/knj_controller.rb, line 22
def youtube_open
              render :file => "Knj/rhodes/youtube_open.erb"
end