0
I have a button that leads to another screen, but if the user is not logged in to the system he should redirect to the login screen and not to the one that is already going. You can do this directly in link_to?
li= link_to 'Anuncie', new_subscription_path, class: "button"
Are you using what to authenticate your user? Devise?
– Alex Takitani
Yes, I’m wearing the Devise
– Rodrigo Barreto