similar to: redirect_to weirdness?

Displaying 20 results from an estimated 10000 matches similar to: "redirect_to weirdness?"

2007 Feb 15
0
301 instead of 302 on redirect_to - RESTful
All this works on my dev machine (mongrel_rails) which makes it hard to debug. The deploy machine runs lighttpd 1.4.13 and rails 1.2.2. This is how it lookes: POST model/1 (_method PUT) 180.160.211.126 host.dk - [15/Feb/2007:16:05:53 +0100] "POST /model/6 HTTP/1.1" 301 0 "http://host.dk/model/6;edit?" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.1)
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 May 12
0
redirect_to with hash vs string and docs
Hi, When I use redirect_to with a string (eg. redirect_to "http://www.yahoo.com"), the browser is sent a response with a header containing status 302. This is good for what I am doing. If I use redirect_to with a hash (eg. redirect_to :action=>''list''), the browser is sent a response with status 200 and the body contains the destination of the redirection. This
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 Jul 24
3
Confused on URLs to my Rails App
I need a VERY SIMPLE solution to get to my rails app. We have a WHM/Cpanel linux server with numerous virtual servers on it. I have an existing website called www.mydomain.com that lives in /home/mydomain/public_html. I have written a rails app called "test" that is in /home/mydomain/test, and it''s rails "root" is therefore /home/mydomain/test/public. I am an
2008 Mar 16
3
undefined method `redirect_to'
Hi all. I''m getting the following error in my app: undefined method `redirect_to'' for ActionController::Base:Class I''m using Windows 2000, Rails 2.0.2 and resource_controller (from James Golick). My controller: class CommentsController < ApplicationController include ResourceController::Controller belongs_to :post, :article, :photo create do
2006 Aug 03
1
Why doesn''t redirect_to handle rjs?
Is there a good reason why redirect_to doesn''t check responds_to, so it can handle redirects in rjs calls? I''ve done something like this in my app controller, seems to work ok... alias_method :redirect_to_orig, :redirect_to; def redirect_to(options = {}, *parameters_for_method_reference) respond_to do |accepts| accepts.html do redirect_to_orig
2006 Mar 17
0
Returning from Ajax call - "redirect_to error"
I have Ajax commenting on my site, well, I''m trying to get it working. It worked fine locally, but when I posted to the server, I''m getting an "Application Error (Rails)", and I checked the logs, and it has: (stack trace too deep) /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:447:in `url_for''
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 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 =>
2006 Jul 10
10
IE vs Firefox -- http:// matters?
I just noticed something interesting (or not) about getting to my RoR app on the 2 browsers. I''ve tested it running Webrick or Mongrel_rails and get the same behavior. The app is at http://www.mydomain.com:myport#/app/list Specifying that complete URL works fine in both browsers. However in IE if you just specify www.mydomain.com:myport#/app/list I get page not found. In FF the URL
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 04
4
How to redirect_to the same page after comment posting?
How can I have the page redirect_to the same page after someone posts a comment? I know that you can do "redirect_to :action => ''index''", but the page is located at this URL: /posts/2006/02/01/individual_post/ So, the action is "individual" which is in the "posts" controller, but there is a custom URL mapped for the URL shown above. How can
2009 Sep 19
5
How to: redirect_to through a folder hierarchy (upwards)
Hi there, how do I tell the current controller correctly to redirect_to an action of another controller that is 1 level higher in the folder hierarchy than the current controller? How I have tried: Within the current controller (called ''incidents''), I have put: redirect_to :controller => ''members'', :action => ''show'', :id =>
2005 Dec 23
1
render or redirect_to??
When would I use a render and when would I use a redirect_to? It seems that a redirect_to would be so much more common, but there has been an emphasis on rendering in rails John McClain Senior Software Engineer TCS Healthcare jmcclain-RI2jYlfFOOy2dUpmj6OxPQC/G2K4zDHf@public.gmane.org (530)886-1700x235 "Skepticism is the first step toward truth"
2008 Aug 01
1
Samba 3.0.31 stills fails to read and write to socket.
Hi, I recently upgraded my servers from 3.0.28 to 3.0.31 trying to solve the winbind issue previously reported (Bug# 5551) but the issue is still happening in my servers. I have an ftp server (vsftpd), configured to use pam_winbind with krb5_auth and I see some random disconnects and my users cant login. My samba servers are member of a Windows 2003 domain. The relevant lines on my
2007 Nov 08
2
SystemStackError from redirect_to
Hi I''ve got a straightforward piece of code in my controller which will consistently produce a SystemStackError. @newmessage = @message.reply(params[:newmessage]) return unless request.post? if @newmessage.save flash[:notice] = "Message Sent" redirect_to :index end The error is occuring on the redirect_to line, if I comment that line out then everything behaves as it
2007 Oct 03
2
Ferret and Mongrel and redirect_to
Hello, I try and run mongrel 1.0.1 and ferret 0.11.4 on Windows XP. To break mongrel all I have to do is invoke a class with Ferret in it. Here''s my class: require ''ferret'' include Ferret class SearchIndex def initialize print "SearchIndex:Initialize\n"; end end When I put this in my controller, I break mongrel: searchIndex =
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 May 07
5
Controller redirect_to to leave iframe
Inside an iframe, I want the controller to redirect_to to the parent (i.e. target =''_parent''). Any ideas? (Everything I''ve tried- via redirect_to - just keeps it inside the iframe)