links from excel to rails server running devise not working properly -


(rails 4, ruby 2.0, excel osx 14.5, same problem detected in windows excel) have link in excel looks like:

https://www.example.com/reports/download_frame/1481

when user clicks in excel routed default home page. when cut , paste same url browser works fine, , go direct page.

on apache, log looks like:

- - - [14/jun/2015:15:41:44 -0400] "options /reports/download_frame/ http/1.1" 404 1564 "-" "microsoft office protocol discovery" - - - - [14/jun/2015:15:41:45 -0400] "get /reports/download_frame/1481 http/1.1" 302 106 "-" "mozilla/5.0 (macintosh; intel mac os x) excel/14.50.0" - - - - [14/jun/2015:15:41:45 -0400] "get /users/sign_in http/1.1" 200 4148 "-" "mozilla/5.0 (macintosh; intel mac os x) excel/14.50.0" - - - - [14/jun/2015:15:41:46 -0400] "get /users/sign_in http/1.1" 302 93 "-" "mozilla/5.0 (macintosh; intel mac os x 10.9; rv:38.0) gecko/20100101 firefox/38.0" - - - - [14/jun/2015:15:41:46 -0400] "get / http/1.1" 200 6772 "-" "mozilla/5.0 (macintosh; intel mac os x 10.9; rv:38.0) gecko/20100101 firefox/38.0" - 

i not sure first call doing, 2nd should correct. seems devise auto logging them in, forgetting original url. if logged in, shouldn't work on first try?

use rememberable devise module remember users when connected.

check documentation here: http://www.rubydoc.info/github/plataformatec/devise/master/devise/models/rememberable


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -