Reputation: 2920
I want to send an email to user to confirm their account. My app have only mobile version so I want to detect case when user will open email and click confirmation button using web browser. In such case I need to display instruction to go to the mobile app. But in case when it's opened by mobile the confirmation button should redirect to the app and confirmed whole account.
Is there any rails way to distinguish between these two cases? I'm using devise for all email mechanism.
Upvotes: 1
Views: 1708