search for: redirected_to

Displaying 10 results from an estimated 10 matches for "redirected_to".

2006 May 16
3
UserEngine and hiding controllers
I''m using LoginEngine + UserEngine for web application. 1. I have some controllers under and admin subdirectory (Admin::PostController etc). The auto-fill permission in UserEngine does not work correctly with those controllers. Right at the moment this is not a problem, since I kind like having the Admin section separated and available only for god users. However, I could use
2006 Mar 13
1
issue with redirect_to
...for_method_reference) #:doc: 753: case options 754: when %r{^\w+://.*} 755: raise DoubleRenderError if performed? 756: logger.info("Redirected to #{options}") unless logger.nil? 757: response.redirect(options) 758: response.redirected_to = options 759: @performed_redirect = true 760: 761: when String 762: redirect_to(request.protocol + request.host_with_port + options) 763: 764: when :back 765: redirect_to(request.env["HTTP_REFERER"]) 766: 767: else 768:...
2006 Dec 31
2
what''s with the response.should_be_xxxx stacktrace?
...se.should_be_success I get about 20k of marshalled dumpage that starts like #<ActionController::TestResponse:0x390443c @body=\"<html><body>You are being <a href=\"http://test.host/carts/1\">redirected</a>.</body></html>\", @assigns=[], @redirected_to={:action=>\"show\", :id=>1}, @template=#<#<Class:0x38d5fc4>:0x38d5f9c @assigns={\"template_ro and finishes 20 pages later with @headers={"Status"=>"302 Found", "cookie"=>[], "Content-Type"=>"text/html; charset=u...
2009 Jan 19
1
in functional test, assert_redirected_to w prefix
I had to use sub-URI deployment (could not use subdomains..), and when running my functional tests, I the redirected_to assertion embed the prefix.. quite normal ;-)) is there a way to stipulate this prefix in the test setup to avoid hard-coding in all the tests ? Expected response to be a redirect to <http://test.host/my/page> but was a redirect to <http://test.host/intranet/my/page> /intranet being...
2008 Jan 16
1
session data and user stories
...Then("I should be authenticated") do @session.response.session.data.should == {:id => 1, "flash" => {}} end #and this is just hideous. Then("I should be sent to the dealer landing page") do puts @session.response.instance_variable_get("@redirected_to").should == {:controller => "dealers"} end end with_steps_for(:dealer_login) do run_local_story "dealer_story", :type=>RailsStory end there is a good chance someone has already covered this and i have just managed to miss it. documentation on rbehave is spar...
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. --
2009 Oct 13
0
RSpec, flash messages and redirection
...he application, the text is shown, even when I run the application on test mode (RAILS_ENV=test script/server) I don''t know what can be the difference, it seems that the testing execution of RSpec is not the same that the application execution. 2) When using something like "response.redirected_to.should == "/login" The RSpec execution is not redirected, the response object has the status "200 OK", but if I run the application in that circumstances, it gets redirected. It seems like I''m missing something, I''ve used this things successfully in the past a...
2007 Jan 26
0
Problems with assert_select in integration tests
.../nielsene/ruby-work/compinabox/config/../vendor/rails/actionpack/lib/action_controller/integration.rb:453:in `run'']: Expected at least 1 elements, found 0. <false> is not true. And here is an except from "puts response.inspect" #<ActionController::CgiResponse:0x247432c @redirected_to=nil, @headers={"Status"=>"200 OK", "type"=>"text/html; charset=utf-8", "cookie"=>[], "Cache-Control"=>"no-cache", "Content-Length"=>2247}, @session=#<CGI::Session:0x246e2b0 @session_id="d0060c4ee3...
2006 Jun 16
0
rake spec controller test output hideus.
...r.net\">Jon Gretar Borgthorsson</a>. All Rights Reserved</span>\n</div><!-- end of bttmbar -->\n\n</body>\n</html>", @headers={"Status"=>"200 OK", "cookie"=>[], "Cache-Control"=>"no-cache"}, @redirected_to=nil, @assigns=[], @session=#<ActionController::TestSession:0x24d6a74 @attributes={"flash"=>{:warning=>"Signup unsuccessful"}}>, @template=#<#<Class:0x251ee78>:0x24d4f80 @headers={"Status"=>"200 OK", "cookie"=>[], "Cac...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server