Is it possible to set a session variable using link_to? I do not want to set the parameter, because I have several redirects, and it is removed.
i.e. I want to set the "modelid" session variable to "you" with a link.
I want to set a session variable while FB login oauth is working ...
<%= link_to "New Post", "#", {:class => "btn btn-primary btn-large inline pull-left", :onclick => "FB.login(function(response){},{perms:'email, publish_stream, user_photos'});" } %>
source share