Displaying 20 results from an estimated 30000 matches similar to: "You are being redirected"
2007 Jun 29
0
acts_as_authenticated, reset_session, and redirect_back_or_default
Just a question and an FYI
I just installed rails and acts_as_authenticated and was setting up a
site. Everything works fine except that in the AccountController that
I generated the calls to the routine redirect_back_or_default don''t
work because the call just before it to reset_session clears the
session[:return_to] that the method uses to set where it will
redirect.
I ended up adding
2006 Dec 01
0
You are being redirected message
Ticket #3082 details a fix to add a body to redirect pages. This seems like
an old patch, but only now is it biting me. I have an authentication scheme
like this:
class ApplicationController < ActionController::Base
before_filter :check_authentication, :except => [:signin]
def check_authentication
return true if session[:user]
session[:return_to] = request.request_uri if
2008 Jan 30
2
Where can I get "authenticate_with_http_basic"?
Hi,
I just installed Rails 2.0.2
[root@mymachine easyx]# ruby --version
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]
[root@mymachine easyrx]# gem install rails --include-dependencies
Need to update 16 gems from http://gems.rubyforge.org
................
complete
Successfully installed rails-2.0.2
[root@remandev easyrx]#
But I''m getting this error in my restful_authentication
2004 Oct 24
0
redirection bug ?
Hi
I use code from authentication example from ruby on rails web page.
Everything looked fine until i found thet when i log for the first time it
gives me bad redirection. When session[''return_to''] was set everythig
had been fine so i changed (look into my code) from 1 to 2.
this is from login controler
def login
if
2011 Sep 07
0
"You are being redirected" page
when i updating some post or create new, i do redirect:
format.html { redirect_to @post, notice: ''Post was successfully
updated.'' }
but i''m falling into the page looks like "You are being redirected"
is there anybody knows where it appears and how to repair it?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2005 Nov 25
0
Login Authentication working in IE but not in Mozilla
I have gone through the following site for the creation of my login
page:
To mention I am using Windows XP pfofessional running on WEBBrick server
http://wiki.rubyonrails.com/rails/pages/HowtoAuthenticate
The code is given in the following 3 steps:
1)The controller that needs protection:
class WeblogController < ActionController::Base
before_filter :authenticate
def index
# show
2006 May 03
0
Accessing the params hash in a functional test not working
I am having problems reading params in a functional test (Rails 1.1.2). My
test looks like this:
fixtures :users
def test_auth_bob
@request.session[:return_to] = "/bogus/location"
post :login, :user => { :email => "bob@example.com", :password => "test"
}
assert_session_has :user
assert_equal @bob, @response.session[:user]
2006 Jun 01
3
how can i redirect a person after a login
i built my own login system, but unfortunately, i am having problems
(ie, can''t really figure out how) to redirect a person back to the page
he was requesting before logging in...say, as the admin i want to edit a
certain message/logo, whatever, so i click on it, and i get redirected
to my login page. after the admin logs in, he gets redirected to the
homepage - i couldn''t
2006 Jun 06
1
Redirect\Cookie bug with MSIE 5.5sp2
Hello all,
There seems to be a bug in internet explorer 5 where a redirect
causes the session to be lost.
A controller says....
def login
case @request.method
when :post
if @session[:user] = User.authenticate(@params
[:user_login], @params[:user_password])
return redirect_to(:action=>''send_confirmation'') unless
2010 Jul 01
6
Close Modalpopup with RJS
hi guys:
I''m scratching my head on this one: I have a twitter app where I''m
trying to open a modalpopup with a twitter sign in, get them to sign in,
then close the popup and refresh the main window. My code however
refreshes the main window with the popup window result, which I thought
was really strange:
application.html.erb
function OpenModalPopUP()
{
2006 Feb 28
1
Oracle OraNumber problem with Authentication. Please help!
I have added an authenticator using the instructions here:
http://wiki.rubyonrails.org/rails/pages/HowtoAuthenticate
The LoginController sets session["employee"] to an employee.
When i try to access the session["employee"] from another controller i
get this error :
"
TypeError (no marshal_dump is defined for class OraNumber):
c:/ruby/lib/ruby/1.8/pstore.rb:159:in
2013 Jan 18
1
redirect_to(session[:return_to]) vs session.delete
Hey all,
Recently I''ve been looking into on how to return back to a previous
referring URL and and the most common approach is:
redirect_to session[:return_to]
But some recommend:
redirect_to(session.delete(:return_to) || default)
How I understand it, in the second example we call session.delete so it
will clear the return path since we will no longer need it, and we also use
2006 Jun 28
2
Saving and reproducing a POST request.
Hi
I have an action which saves the originating resource from which it
was called, and returns to it later. This is done by setting:
session[:return_to] = request.referer
...
redirect_to(session[:return_to])
Which works great for GET resources. The problem is that POST
variables aren''t kept in request.referer, so this method fails when
the originating resource is a a POST.
2006 Jul 04
1
LoginGenerator Problem
I am trying to make a barebones login system based on this example
(which in turn is just standard RoR login) but when I enter a user name
and password, it says the login is unsuccessful every time. I am not
sure where I am going wrong. Here is all relevent information
CREATE TABLE `users` (
`id` int(6) unsigned NOT NULL auto_increment,
`login` varchar(20) NOT NULL default
2006 Dec 27
5
redirect back to where I was before action?
For some reason I cannot find the documentation for this. How can I
store the current URI/URL so that I can return with a redirect_to?
session[last_action] = ???
--
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,
2007 Feb 15
0
Error handleing with redirect_to
I''m sketching out a error handler, something like
if cando = false
redirect_to( :controller => Oops,
:action => ''accessdenied'',
:type => ''alarm'',
:message => ''no_permission_to_view'',
:return_to => saved_url,
)
else
....
end
Is this an
2007 May 23
3
User Login (process_login)
Hiya - before I start let me tell you i''m a Nuby on Rails.
I''ve created a user registration within my application that requires
email validation and that seems to be working fine.
I''m now creating the user login page and have the following code in my
UsersController:
def login
@user = User.new
@user.username = params[:username]
end
def
2008 Aug 19
6
redirect with application add
There are groups within our app that people can be invited too. If a user
recieves an invite to a group and hasn''t yet added the application the
filter chain ends up redirecting them to the main canvas page instead of the
the group page directly. Is there a way to handle this if the user hasn''t
installed the app, I tried redirect_back_or_default in one of my controllers
but it
2009 Dec 25
18
rescue_from ActionController::RoutingError II
OK ... so I''m not supposed to use it but ...
Why doesn''t rescue_from ActionController::RoutingError work witht he
code from
http://www.rubyplus.org/episodes/20-Extended-RESTful-Authentication-Rails-2-App.html
class ApplicationController < ActionController::Base
helper :all # include all helpers, all the time
# See ActionController::RequestForgeryProtection for details
2008 May 20
3
Flash message not shown after redirected by verify
I have the following snippet in a controller.
verify :params => "post", :only => [:create, :update, :destroy],
:add_flash => {"notice" => "Invalid Access"}, :redirect_to => {:action
=> ''list''}
If I directly access /posts/create by typing URL (GET), the program
redirects to the "list" action, but the flash message I