Class: Platform::Developer::HelpController

Inherits:
BaseController show all
Defined in:
app/controllers/platform/developer/help_controller.rb

Overview

– Copyright © 2011 Michael Berkovich

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ++

Instance Method Summary collapse

Methods inherited from BaseController

#mobile_device?, #platform_current_developer, #platform_current_user, #platform_current_user_is_admin?, #platform_current_user_is_developer?, #platform_current_user_is_guest?

Instance Method Details

#apiObject



76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# File 'app/controllers/platform/developer/help_controller.rb', line 76

def api
  ref = Platform::Config.api_reference(@version) 
  unless ref
    trfe("Unsupported API version")
    return redirect_to(:action => :index, :version => @version)
  end
      
  if params[:path].blank?
    trfe("API path must be provided")
    return redirect_to(:action => :index, :version => @version)
  end

  @api = Platform::Config.api_reference_by_path(@version, params[:path])
  unless @api
    trfe("Unsupported API path")
    return redirect_to(:action => :index, :version => @version)
  end
end

#indexObject



28
29
30
# File 'app/controllers/platform/developer/help_controller.rb', line 28

def index
  
end

#oauth_app_loginObject



52
53
54
# File 'app/controllers/platform/developer/help_controller.rb', line 52

def 
  
end

#oauth_client_sideObject



44
45
46
# File 'app/controllers/platform/developer/help_controller.rb', line 44

def oauth_client_side
  
end

#oauth_desktopObject



56
57
58
# File 'app/controllers/platform/developer/help_controller.rb', line 56

def oauth_desktop
  
end

#oauth_extensionsObject



64
65
66
# File 'app/controllers/platform/developer/help_controller.rb', line 64

def oauth_extensions
  
end

#oauth_introObject



36
37
38
# File 'app/controllers/platform/developer/help_controller.rb', line 36

def oauth_intro
  
end

#oauth_mobileObject



60
61
62
# File 'app/controllers/platform/developer/help_controller.rb', line 60

def oauth_mobile
  
end

#oauth_server_sideObject



40
41
42
# File 'app/controllers/platform/developer/help_controller.rb', line 40

def oauth_server_side
  
end

#oauth_trusted_clientObject



48
49
50
# File 'app/controllers/platform/developer/help_controller.rb', line 48

def oauth_trusted_client
  
end

#referenceObject



32
33
34
# File 'app/controllers/platform/developer/help_controller.rb', line 32

def reference
  
end

#sdk_iosObject



72
73
74
# File 'app/controllers/platform/developer/help_controller.rb', line 72

def sdk_ios
  
end

#sdk_jsObject



68
69
70
# File 'app/controllers/platform/developer/help_controller.rb', line 68

def sdk_js
  
end