Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当您在 Rails 应用程序中单击具有文件选择器按钮的页面时,该按钮不会呈现。我认为这是因为它仅在窗口加载时触发。Turbolinks 需要回调 page:load。
如何修复/解决?
现在的解决办法是搬家
<%= filepicker_js_include_tag %>
从标签内到<head>标签内<body>。
<head>
<body>
请参阅此讨论:https ://github.com/Ink/filepicker-rails/issues/52