I have a simple Rails app and to avoid another login name for users to
remember I’m pulling information off our IT run IIS webserver via
I have a simple ColdFusion page called “getLogin.cfm” and it gets the
username of the computer visiting the page. So here’s my flow.
My rails app links to -> getLogin.cfm gets the username and immediately
redirects back to the referring page with the username as a parameter
However, if I do a redirect_to “getLogin.cfm”, the referring URL that
getLogin.cfm see’s is not my Rails app. But if I do a link_to “Get
Login”, “getLogin.cfm” then the user is forwarded over to getLogin.cfm
and redirected back to my Rails app in an instant.
I would like to get this situated so the user doesn’t have to click a
link in order to login.
Is there a way to emulate that click in any way?
My controller code (very simple):
(the link to getLogin.cfm is in my view)
redirect_to :action => ‘show’, :id=>params[:id]