Displaying 20 results from an estimated 40000 matches similar to: "redirect_to issue - lost port number"
2006 Mar 13
1
issue with redirect_to
Hi all:
I can''t make redirect_to to unlock the current iframe using {:TARGET =>
"_top"}. It always stays in the current frame. I checked the
redirect_to code, it seems the method does not use "target". here is the
source code of redirect_to from ActionController::Base
def redirect_to(options = {}, *parameters_for_method_reference) #:doc:
753: case options
2006 Dec 30
1
redirect_to(:action => ''foo'') and return
I''m not sure why this is happening, but if I do this in a controller
unless @variation && @variation.quantity > 0
flash[:error] = "Sorry, that product is currently not available."
redirect_to(:action => ''error'') and return
end
rspec tells me
2)
ActionController::DoubleRenderError in ''The Carts controller with an
2006 Feb 07
0
redirect_to and complex values
Guys,
I have a number of actions that need to redirect to the user (as opposed
to render) to an action so that a refresh won''t report the data.
However, these actions also need to pass a hash to the targeted actions
in the redirect.
Trying to do this with redirect_to paramters converts the Hash to a
String, which won''t work for me. For example:
2006 Jul 22
2
redirect_to error
Hi,
I have a redirect_to statement in a method that I would like to have
at the end of the method to take you to a ''Success'' page if
everything works.
When I hit the redirect_to statement, ( redirect_to :action =>
''show_success'' )
I get this in the browser:
Application error
Rails application failed to start properly"
The development.log
2007 Jun 21
0
problem with redirect_to() and VirtualHost
I''m running into a problem with redirect_to() and Apache''s
VirtualHost facility. I have probably have something set up
wrong, but I''m not even sure how to approach the problem.
Background:
We have DNS set up to return the domain''s address for all
sub-domains. So, "dig xyz.cfcl.com" returns the same IP
address as "dig cfcl.com".
2007 Apr 02
2
redirect_to an uncertain hash
I am trying to deal with a redirection based upon what to do after a
session has expired. I take the params hash and stuff it into a new
session as part of the new login and then after login, I want to
redirect to this hash as though they were params again...
Thus I start by setting
session[:direct_to] = @params
And after I login, I want to redirect based upon the values in
2007 May 03
3
0.9.2 redirect_to no longer accepts hash?
Why am I now getting these errors?
expected redirect to {:action=>"index"}, got redirect to
"http://test.host/authenticated_users"
I know in the AuthenticatedUsersController, the redirect call is
redirect_to :action => ''index''
So why should I have to convert this to a url in my specs?
2006 Mar 04
0
HELP with redirect_to!
I''m having trouble redirecting back to the same page after a comment is
posted. To post a comment, this is what I''m doing:
#controller
def comments
content = Content.find(params[:id])
comment = Comment.new(params[:comment])
content.comments << comment
content.save
redirect_to (
:action => ''individual'',
:year =>
2007 Aug 15
4
nuby: how spec redirect_to at ApplicationController
Good morning rspec people!
Still rspec nuby: I must do something wrong obviously.
How can I spec about redirect_to at ApplicationController
describe ApplicationController do
it "method login_required should redirect to home path without login" do
pending "I tried to use controller.login_required.should be_redirected
and got NoMethodError with nil object
2006 Jan 16
1
redirect_to is not working with ajax forms
I''m having trouble using redirect_to in an action called by a
remote_form_tag.
The log shows the redirect, and rendering of the redirected page, but the
browser
won''t redirect. If I set :update in the form_remote_tag, the page that was
supposed
to be redirected to will replace the :update elements content, and crash
FF1.5
Running edge rails, and utf8 encoding
joshua
2006 Jun 02
0
redirect_to problem - not redirecting
I have an application which is to talk to the protx VSP server system.
In order for it to work I need to redirect to a url which looks like the
following :
https://ukvpstest.protx.com/VSPSimulator/VSPServerPaymentPage.asp?TransactionID={88F1532E3-17E8-410A-A688-1E1ABCDDD50}
(the above is not a valid transaction id just an example)
this is stored in a variable called next_url
so when I call
2006 Mar 30
1
flash, before_filter and redirect_to
I leave a notice in the flash and do a redirect from a before_filter.
Can someone confirm that the first request after this, i.e. the page I
redirect to, doesn''t/isn''t supposed to clear the flash?
--
View this message in context: http://www.nabble.com/flash%2C-before_filter-and-redirect_to-t1367103.html#a3665933
Sent from the RubyOnRails Users forum at Nabble.com.
2006 Jan 27
0
redirect_to(:action => ...) usage?
I''ve a number of places in my rails application where I have
redirects, but I find they are not always redirected. I think
part of the problem is that my understanding of pre-requisites
is insufficient. I''m not sure how to frame a search to get the
answer I need. I''m using Rails 0.14.3 under cygwin with ruby 1.8.2
How do I make sure that data received in @params[] on
2008 Jan 23
4
redirect_to broken?
Is ActionController''s redirect_to method broken by Facebooker? When I try to invoke it and execute through apps.facebook.com, I get a blank page returned, response code 200, no redirect. When I try to connect directly to the server (not through apps.fb), I get the infinite recursion error described minutes ago. Are any of you able to use redirect_to successfully, and if so, any ideas
2006 Jul 03
0
REST vs. render vs. redirect_to w.r.t. create error messages, efficiency and the desired URL
Hi,
Something has been bothering me for a long time and I''d like to know
what other think about this common situation with Rails.
Someone is looking at http://example.com/user/new where there is a
form that POSTs the data to the user/create action. The controller
might look like
def new
@user = User.new
end
def create
@user = User.new(params[:entry])
if @user.save
2008 Feb 02
3
Question abt redirect_to..
I found a reference to using attachment_fu and followed the lead of it
but having an issue with the redirect_to that renders the fb:render
tag - In my form I''m setting the canvas to false, file is being
uploaded / save fine but when I attempt to redirect:
redirect_to :action => :new, :canvas => true
Unfortunatly it looks like my callback URL is getting printed twice, e.g.
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 May 25
0
Test redirect_to fails
Hi
I have a weird issue on functional testing
Here is the redirect I have in my controller:
redirect_to :controller => "/param/user", :action => :edit, :id
=> @current_user.id
And here is my functional test:
assert_redirected_to :controller => "/param/user", :action
=> :edit, :id => users(:vincent).id
And when I run test I have this error
2007 Jul 26
6
response.should_not redirect_to
Hey,
May be it is just too deep night over here and I''m missing something
though I got this failure on {{{response.should_not redirect_to}}}:
''QueuesController should allow authenticated user to access ''show''''
FAILED
Matcher does not support should_not.
See Spec::Matchers for more information
about matchers.
Also I''ve found this in
2006 Aug 17
0
redirect_to POST?
Is it possible to automatically direct someone to a POST? Whenever a
user comes to my site, I''m automatically creating a user in the DB for
that person, however I''m also trying to stick to REST principles
otherwise. My idea was to have a before_filter :check_user that checked
to see whether this user existed or redirected to a POST users_url() to
automatically create the