Module: BigbluebuttonRailsHelper
- Defined in:
- app/helpers/bigbluebutton_rails_helper.rb
Instance Method Summary collapse
- #bbb_rails_error_explanation ⇒ Object
- 
  
    
      #mobile_apple_store_image  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Apple Store image to show together with the link to download the iOS client. 
- 
  
    
      #mobile_apple_store_link  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Link to download the iOS application from Apple Store. 
- 
  
    
      #mobile_google_play_image  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Google Play image to show together with the link to download the Android client. 
- 
  
    
      #mobile_google_play_link  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Link to download the Android application from Google Play. 
- 
  
    
      #qrcode_url(content, size = nil)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Returns the URL for a QR-code image using Google Charts API. 
- 
  
    
      #setup_bigbluebutton_room(room)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Setup a BigbluebuttonRoom to show in the forms. 
Instance Method Details
#bbb_rails_error_explanation ⇒ Object
| 10 11 12 13 14 15 16 | # File 'app/helpers/bigbluebutton_rails_helper.rb', line 10 def bbb_rails_error_explanation msgs = "" flash.each do |key, msg| msgs += content_tag(:div, msg, { :id => "error_explanation", :class => key }) end msgs.html_safe end | 
#mobile_apple_store_image ⇒ Object
Apple Store image to show together with the link to download the iOS client.
| 40 41 42 | # File 'app/helpers/bigbluebutton_rails_helper.rb', line 40 def mobile_apple_store_image "badges/apple_store_#{I18n.locale}.png" end | 
#mobile_apple_store_link ⇒ Object
Link to download the iOS application from Apple Store.
| 35 36 37 | # File 'app/helpers/bigbluebutton_rails_helper.rb', line 35 def mobile_apple_store_link "https://itunes.apple.com/us/app/mconf-mobile/id864391260" end | 
#mobile_google_play_image ⇒ Object
Google Play image to show together with the link to download the Android client.
| 30 31 32 | # File 'app/helpers/bigbluebutton_rails_helper.rb', line 30 def mobile_google_play_image "badges/google_play_#{I18n.locale}.png" end | 
#mobile_google_play_link ⇒ Object
Link to download the Android application from Google Play.
| 25 26 27 | # File 'app/helpers/bigbluebutton_rails_helper.rb', line 25 def mobile_google_play_link "https://play.google.com/store/apps/details?id=air.com.mconf.mconfmobile" end | 
#qrcode_url(content, size = nil) ⇒ Object
Returns the URL for a QR-code image using Google Charts API
| 4 5 6 7 8 | # File 'app/helpers/bigbluebutton_rails_helper.rb', line 4 def qrcode_url(content, size=nil) size ||= "200x200" content = CGI::escape(content) "https://chart.googleapis.com/chart?cht=qr&chs=#{size}&chl=#{content}&choe=UTF-8" end | 
#setup_bigbluebutton_room(room) ⇒ Object
Setup a BigbluebuttonRoom to show in the forms
| 19 20 21 22 | # File 'app/helpers/bigbluebutton_rails_helper.rb', line 19 def (room) (room..count..10).each { room..build } room end |