Displaying 20 results from an estimated 100000 matches similar to: "redirect_to and post parameters"
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
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 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 Mar 30
4
redirect_to("url") with post?
Is there a Rails-friendly way to redirect_to an url and post some
parameters with that?
I''ve tried:
redirect_to("http://whatever.com", { ''postme'' => ''this'' })
redirect_to("http://whatever.com", :post => { ''postme'' => ''this'' })
redirect_to("http://whatever.com", :options
2006 Mar 12
0
redirect_to with different HTTP error status
Hi all,
when using redirect_to rails redirects and automatically sets the HTTP
status to 301. Is there a way to change this? I''d like to redirect
with the HTTP status 302 (moved permanently).
Any help would be greatly appreciated!
Thanks,
Daniel
--
Posted via http://www.ruby-forum.com/.
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
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 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 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 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 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
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".
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
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.
2011 Feb 06
2
Difference in redirect_to behaviour (Firefox, IE 7)
Hi,
Using Rails 3.0.3 on Ubuntu 10.
In my application controller I have a before filter which checks
where or not a User has some comment records. If no comment
records our found, a redirection is issued
to the main page.
All my rspec/cucumber tests passed.
So I thought start the server and see what happens
when I use Firefox (3.6) or Internet Explorer (1.7)
Scenario:
Firefox
User navigates
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 Feb 28
2
redirect_to or render
Hey, a newbie here.
Can someone please give me a brief explanation whats the difference
between the redirect_to method and the render method and when should I
use one instead of the other ?
thnx alot !
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send
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
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 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