Hi

I got error while I try this:

My controller is :

class SessionsController < Devise::SessionsController
def new
super
end
def create
resource = warden.authenticate!(:scope => resource_name, :recall =>
:failure)
if resource
subdomain_name = current_user.account.subdomain_name
puts "==================#{subdomain_name}"
redirect_to root_url(:subdomain => subdomain_name)

end
end

end


and when I try to redirect I have got

http://kausik.localhost:3000:3000/
in rails console

where it should be http://kausik.localhost:3000/

Please help to fix this

Thanks in Advance

Kausik

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedFeb 13, '12 at 12:33p
activeFeb 13, '12 at 12:33p
posts1
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Kausik Bakshi: 1 post

People

Translate

site design / logo © 2022 Grokbase