similar to: Redirect Loop

Displaying 20 results from an estimated 20000 matches similar to: "Redirect Loop"

2006 Jun 01
3
how can i redirect a person after a login
i built my own login system, but unfortunately, i am having problems (ie, can''t really figure out how) to redirect a person back to the page he was requesting before logging in...say, as the admin i want to edit a certain message/logo, whatever, so i click on it, and i get redirected to my login page. after the admin logs in, he gets redirected to the homepage - i couldn''t
2010 Mar 02
1
Redirect issue
Dear Friendz, I have found a unique issue. This is the first time iam getting a issue like this. I have created a add, delete page. after adding or deleting functionality it should redirect to list page. Everything was working fine for last two months suddenly from yetserday the page was not redirected properly to list page after add or delete. That too it works fine in firefox but doesnt
2008 Dec 03
2
Render and/or redirect were called multiple times in this action
I''m trying to add an application enabled/disabled flag in my application.. This is my code. [code=] # application.rb ... before_filter :check_enabled_flag private def check_enabled_flag application_flag = ApplicationFlag.find(:first) if application_flag.application_enabled redirect_to application_disabled_path and return end end[/code] and for some reason
2011 Jun 05
1
Cancan redirect back at AccessDenied
Hello I have a rails 3 app and I am trying to implement the redirect back action at access denied for cancan. If I try this in my application_controller: rescue_from CanCan::AccessDenied do |exception| redirect_to :back end It gives the following error: No HTTP_REFERER was set in the request to this action, so redirect_to :back could not be called successfully. If this is a test, make sure
2008 Aug 27
1
redirect with multi-dimensional parameter hashes
Hi, Is it possible to redirect passing multi dimensional parameters? I need to send params[:current][:selview] to another action mantaining the same data structure if I try as follows: redirect_to :controller=>"main",:action=>"inquiry",{"current"=>{ "selview"=>params[:current][:selview]}} I receive "syntax error, unexpected
2006 Apr 11
1
Double redirect
I have two before_filters for my application that both redirect. The first checks whether there is an active session and if so, whether it has timed out (a la the recipes book). This is run from ApplicationController. The second filter is in use throughout most of the app and checks to see whether the user has the correct credentials to view the controller. This is run from individual
2004 Dec 31
2
Am I opening myself to some security vulnerability if I unprotect the Controller classes'' redirect methods?
Am I opening myself to some security vulnerability if I unprotect the Controller classes'' redirect methods? I merrily wrote a (specific to my university) authentication filter as a separate class. As part of the authentication process it needs to re-direct the user to a university server to log in. This all works fine except that the redirect_to methods of a controller are all
2006 Apr 01
3
Can I do a redirect in an ajax request?
I''ve got a form on my page, and when the user submits it, sometimes I''d like to update an element on my page, and sometimes I''d like to redirect the browser to another url entirely. However if I do redirect_to, it just updates the element with the results of the redirect. Is it possible to do what I want, or will I need to use RJS to do this? Pat
2012 Jul 15
1
Facebook redirect
Hi everyone I have this Application witch won''t redirect, I think it''s because there is another redirect, I mean when i redirect to the FB url (https://www.facebook.com/dialog/oauth?client_id=439021042804757&redirect_uri=http://localhost:3000/) I know there is another redirect, but I can''t get rails to follow this redirect. I had tried to google it, but I
2006 Jan 08
4
Redirect to where I was
I wonder if there is a standard Rails way to redirect from an action back to a previously viewed page. As a quick fix I created two little methods in the controllers/application.rb. Does this seem like an ok way to go? Thanks, Peter class ApplicationController < ActionController::Base def i_was_here session[:i_was_here] = request.env[''REQUEST_URI''] end def
2008 Mar 31
1
How to make a ajax (xhr) redirect?
Hi all, In my application, I want seamless degradability so I use request.xhr? to check whether a request is an ajax call. However here and there, I need to use redirect_to - in this case the request is not xhr anymore, and the check doesn''t work as expected. Is there a way to make xhr- like redirect (which allow to get to another controller+action)? Thanks, - Chuong
2013 Mar 07
3
Expected response to be a <:redirect>, but was <200>
Hey i am new to testing on rails and i have the following test written describe ''GET search'' do it ''finds a named account directly'' do get :search, name: ''test'' expect(response).to redirect_to(account_path(''test'')) end I have been getting the following error SystemAccountsController GET search finds a
2006 Jun 06
1
Redirect\Cookie bug with MSIE 5.5sp2
Hello all, There seems to be a bug in internet explorer 5 where a redirect causes the session to be lost. A controller says.... def login case @request.method when :post if @session[:user] = User.authenticate(@params [:user_login], @params[:user_password]) return redirect_to(:action=>''send_confirmation'') unless
2006 Feb 13
1
Change redirect after method ''redirect_to''
I want to be able to change the redirection url after I called redirect_to, is that possible? My specific use case is that I want to change the default redirection of "Login Engine" method signup, but I am seeing no other way then copy/past and change the parameters of redirect_to. This questions extends to render method as well, I want is to avoid DoubleRenderError exception. --
2006 Jan 10
2
Make link_to_remote call redirect current view, not read redirected content
Hello everyone ! I have a link_to_remote which creates a Party from a ContactRequest. The action on the server creates the party, marks the contact request as processed, and then returns a redirect. According to my knowledge of HTTP, that is the correct thing to do. Unfortunately, Prototype is being too clever for me at this time... It follows the redirect, without notifying me. Anybody has
2006 Apr 17
2
probably easy q: flash before redirect
I''m a little perplexed why this isn''t working: private def check_authorization user = User.find(session[:user]) if user.level == 100 flash[:notice] = "welcome, admin" else flash[:notice] = "ha ha" redirect_to :controller
2007 Nov 02
4
Login Redirect - Hacking the session[original_uri]
Hi There, I have several ajax elements that require authorization, but for various reasons, they can''t pass session[original_uri] to the redirect on user log in. I''m trying to hack in a uri by passing a param to the login page. I can see that the param is passing into the login page, but for whatever reason, no matter what I do, the user is redirected to the homepage after
2009 Aug 06
13
Redirect after login
Hi, I''m new to Ruby/RoR so please bare with me! I''m trying to adapt a ruby setup where someone logs in to a bonjour service via a web browser. I have the login screen which asks for host and password. There is only one user per host and i can log in fine. It''s suppose to redirect me to /list in my browser but doesn''t. Once i''ve entered the correct
2007 May 21
4
Spec''ing redirect with arbitrary parameters
I''ve got the following expectation: response.should redirect_to(:action => "new", :video_id => "1", :process_id => "2", :origin_id => "3") that fails with this error message: expected redirect to {:video_id=>"1", :process_id=>"2", :origin_id=>"3", :action=>"new"}, got redirect to
2006 Feb 02
1
redirect :back unless members controller?
I''d like to do something like this when members log out: redirect_to :back unless :back.controller==''members'' (then redirect to main site index) Anybody know a way? Thanks csn -- Posted via http://www.ruby-forum.com/.