I'm working on a rails app that integrates with other syste开发者_高级运维ms (which can't be changed), and I need to handle the case below:
A user is redirected to my app with a URL like:
http://myapp.com/index?action=signout
The problem is, I can't access this param through params[:action], since Rails uses that to keep track of the current action.
Is there a way around this?
Nevermind! I can just parse request.url myself, and that'll do it.
If its not passed inside the params hash, then you're probably out of luck. Perhaps it could be somehow remapped with a Metal/Rack app...
精彩评论