search for: redirect_to_forwarding_url

Displaying 3 results from an estimated 3 matches for "redirect_to_forwarding_url".

2012 Apr 25
8
showing error (gsub) when switching from session to cookies
...} user.authorization_token = user.id user.save! cookies[:authorization_token] = { :value => user.authorization_token, :expires => 10.years.from_now } else cookies.delete(:remember_me) cookies.delete(:authorization_token) end flash[:notice] = "User #{user.screen_name} logged in!" redirect_to_forwarding_url else @user.clear_password! flash[:notice] = "Invalid screen name/password combination" end end end Please do the needful. I don''t have much time, I need to deliver this project in my college. Thanks Amir -- Posted via http://www.ruby-forum.com/. -- You received this message...
2010 Aug 14
10
Redirecting after logging in
Hey everybody, I''m trying to make an example of a small networking site, and when I log in a user, it should redirect and show his profile, but I get the following error: NoMethodError in User#index Showing app/views/user/index.html.erb where line #5 raised: undefined method `screen_name'' for nil:NilClass Extracted source (around line #5): 2: Your basic information 3:
2010 Jul 31
4
Exception: can't dup Symbol
Hey everybody, I''m trying to test a little piece of code I wrote, and I get the following error: Exception: can''t dup Symbol It happens in the following line: try_to_login @valid_user, :remember_me => "1", where the function try_to_login is: def try_to_login(user, options = {}) user_hash = {:screen_name => user.screen_name, :password => user.password}