从 excel 到 rails 服务器 运行 的链接设计无法正常工作
links from excel to rails server running devise not working properly
(rails 4,ruby 2.0,excel for osx 14.5,但在 windows excel 中检测到相同的问题)
我在 excel 中有一个 link,看起来像:
https://www.example.com/reports/download_frame/1481
当用户单击 excel 时,他们将被路由到默认主页。
当他们将相同的 url 剪切并粘贴到浏览器时,它工作正常,然后他们直接转到该页面。
在 apache 上,日志如下所示:
- - - [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" -
我不确定第一个电话在做什么,但第二个电话应该是正确的。似乎设计是自动登录他们,但忘记了原来的 url。如果他们已经登录,难道它不应该只在第一次尝试时起作用吗?
使用可记忆设计模块在用户连接时记住他们。
在此处查看文档:http://www.rubydoc.info/github/plataformatec/devise/master/Devise/Models/Rememberable
我发帖后发现了这个,措辞不同,但同样的问题,第一个答案是解决我的问题的方法。
Excel links not loading pages, but when the link is pasted in the browser it works.
(rails 4,ruby 2.0,excel for osx 14.5,但在 windows excel 中检测到相同的问题) 我在 excel 中有一个 link,看起来像:
https://www.example.com/reports/download_frame/1481
当用户单击 excel 时,他们将被路由到默认主页。 当他们将相同的 url 剪切并粘贴到浏览器时,它工作正常,然后他们直接转到该页面。
在 apache 上,日志如下所示:
- - - [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" -
我不确定第一个电话在做什么,但第二个电话应该是正确的。似乎设计是自动登录他们,但忘记了原来的 url。如果他们已经登录,难道它不应该只在第一次尝试时起作用吗?
使用可记忆设计模块在用户连接时记住他们。
在此处查看文档:http://www.rubydoc.info/github/plataformatec/devise/master/Devise/Models/Rememberable
我发帖后发现了这个,措辞不同,但同样的问题,第一个答案是解决我的问题的方法。
Excel links not loading pages, but when the link is pasted in the browser it works.