Forum: Ruby on Rails Zombie Issue With email Link

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.
7c30c7ba984a2a80633b308db37c1f8a?d=identicon&s=25 Sai Ch (sai_c)
on 2015-11-25 12:43
Hi All,

I am generate base64 link with some params, that link send to user
email, it's worked fine.

When I need to verify user email, user must and should click on email
from that link I have take token which is generated by me.

in mailer:

% @link = url_for controller: 'api/v1/hum_os',
             action: 'validate_verification_link',
             protocol: 'https',
             host: '',
             query: @query %>

in controller:

def create_link
 unique_token = generate_token
  session[:token]  = unique_token

def verify_link
        query_data = decode_base64_string(query)
        @parsed_query_data = JSON.parse(query_data)
if  @parsed_query_data["token"] == session[:token]

# here session[:token] nil for other browsers and other systems except
my system


if link open in other system or other browser:

image:  Screen_Shot_2015-11-25_at_5.08.15_PM.png

if link open in my chrome browser:

image: Screen_Shot_2015-11-25_at_5.08.33_PM.png
This topic is locked and can not be replied to.