# In the router

match "/login/oauth/authorize", # For every request with this path...

  :to => "[the controller]", # ...send it to the controller...

  :via => [:get, :post] # ... as long as it's a GET or a POST request.

# In the controller

if request.get?

  # serve authorization page HTML

else

  # grant permissions to app

end

是白的 我是一个勤奋的爬虫~~
{{uname}}

{{meta.replies}} 条回复
写下第一个评论!

-----------到底了-----------