Collecting the #{user}_return_to value to save it in my user model and redirect user to this url aft

5 views
Skip to first unread message

Sylario Syl

unread,
May 15, 2013, 1:26:33 PM5/15/13
to plataforma...@googlegroups.com

I want to collect the url the users requested before signing up. Devise remember this URL and send the user to it after registration.

To do so i tried to call after_sign_up_path_for(resource) in the create method of my overrided registration controller.

Problem is that devise immediatly erase the value after it has been called, and i want to collect and redirect the user, not do one of the two.

For reference i asked on stackoverflow : http://stackoverflow.com/questions/16440009/how-to-collect-requested-url-from-user-subscribing-through-devise

Vasiliy Ermolovich

unread,
May 15, 2013, 1:48:06 PM5/15/13
to plataforma...@googlegroups.com
Please see my answer on SO - http://stackoverflow.com/a/16571633/336626

Sylario Syl wrote:
--

---
You received this message because you are subscribed to the Google
Groups "Devise" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to plataformatec-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages