【发布时间】:2020-06-02 09:13:56
【问题描述】:
我想检测调用我的页面的 ID。
示例:
http://localhost:3000#technical-options
浏览器跳转到 id 为 technical-options 的元素,但我无法检测到 ruby / rails 的完整请求。
这没有帮助 How do I get the current absolute URL in Ruby on Rails?
request.url、request.fullpath 没有在# 之后传递 id
非常感谢
【问题讨论】:
-
This 应该有帮助
标签: ruby-on-rails