阅读背景:

在Rails控制器中存储对象的最佳方式(会话除外)?

来源:互联网 

I have a rails controller

我有一个导轨控制器

class Controllername < application
  def method1
    obj = API_CALL
    session =obj.access_token 
     redirect_to redirect_url    #calls the API authorization end point 
                            #and redirects to action method2  
  end
  def method2    
    obj.call_after_sometime
  end
end
class C



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: