Forum: Ruby on Rails Some problems with redirect_to method

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Sophy E. (Guest)
on 2007-06-04 08:52
Hi everyone,

I have developed a login form that allow users to login using their
gmail account. Enabling users to login using their gmail account I use
XMPP4R library which is written in ruby. When users provide correct
userid and password then i redirect them to home page, otherwise i
redirect them to login page again. Rails does not redirect users to
anywhere, but it display a link says "You are being redirect.". If users
click the link it will bring users to the destination. Below is my code:

require 'xmpp4r/client'
include Jabber

class LoginController < ApplicationController

  def index


  def whollycity_authen
    login = params[:login]
    username = JID::new(login[:username] + "@" + login[:server] +
    password = login[:password]
    user = Client::new(username)
      redirect_to :controller => "home"
      redirect_to :controller => "login"


can anyone help?
Keynan P. (Guest)
on 2007-06-04 09:08
thats weird. Mind I've had it happen.

Could you post the source for the pages that comes up inplace of a
This topic is locked and can not be replied to.