Class: KnjController
- Defined in:
- lib/knj/knj_controller.rb
Overview
This files makes the framework able to receive calls from the Rhodes framework from RhoMobile.
Instance Method Summary collapse
- #callback ⇒ Object
- #html_links ⇒ Object
-
#index ⇒ Object
GET /Server.
- #youtube_embed ⇒ Object
- #youtube_open ⇒ Object
Instance Method Details
#callback ⇒ Object
12 13 14 15 |
# File 'lib/knj/knj_controller.rb', line 12 def callback block = $rhodes.callbacks(@params["callback_id"]) block.call(:params => @params) end |
#html_links ⇒ Object
8 9 10 |
# File 'lib/knj/knj_controller.rb', line 8 def html_links System.open_url(@params["url"]) end |
#youtube_embed ⇒ Object
17 18 19 20 |
# File 'lib/knj/knj_controller.rb', line 17 def @iframe_height = System.get_property("screen_height").to_i - 40 render :file => "Knj/rhodes/youtube_embed.erb" end |
#youtube_open ⇒ Object
22 23 24 |
# File 'lib/knj/knj_controller.rb', line 22 def youtube_open render :file => "Knj/rhodes/youtube_open.erb" end |