heroku上我的rails应用程序中 remote = true 的链接未在heroku中正确处理,它们应该被处理为HTML
,而是被处理为{ heroku服务器上的{1}}。
从heroku服务器登录
同时,当本地运行相同的应用程序时,这些链接已正确处理(作为JS
处理)。
来自我本地服务器的日志
以下是我的rails Rails 5.0.0.1
应用
<div id = "navs" class="admin-nav">
<ul class="na">
<li class = "adminli" id = "dash">
<%= image_tag('navs/course.svg', class: 'icon icon-img')%>
<%= link_to "Dashboard", admin_dashboard_path, remote:true %>
</li>
<li class = "adminli" id = "lect">
<%= image_tag('navs/lecturer.svg', class: 'icon icon-img')%>
<%= link_to "Lecturer", admin_lecturer_path, remote:true %>
</li>
<li class = "adminli" id = "stud">
<%= image_tag('navs/student.svg', class: 'icon icon-img')%>
<%= link_to "Student", admin_student_path, remote:true %>
</li>
<li class = "adminli" id = "cos">
<%= image_tag('navs/course.svg', class: 'icon icon-img')%>
<%= link_to "Courses", admin_course_path, remote:true %>
</li>
<li class = "adminli" id = "new">
<%= image_tag('navs/news.svg', class: 'icon icon-img')%>
<%= link_to "News", admin_news_path, remote:true %>
</li>
<li class = "adminli" id = "session_act">
<%= image_tag('navs/news.svg', class: 'icon icon-img')%>
<%= link_to "Session Activities", "admin_session_activities_path", remote:true %>
</li>
</ul>
以my rails application中的管理员身份登录时,可以找到上述链接。
应用程序的管理员登录详细信息
用户名:samuel
密码:samuel