我的代码没有像我期望的那样生成https链接
<%= link_to 'view your task', project_task_path(@project, @project.tasks, :protocol => 'https') %>请注意,这指向一个嵌套资源。
发布于 2011-07-21 02:58:31
啊,我得换衣服了
project_task_path至
project_task_url显然路径帮助器不支持:协议
发布于 2011-07-21 02:56:31
你试过了吗?
<%= link_to 'view your task', project_task_path(@project, @project.tasks), :protocol => 'https' %>https://stackoverflow.com/questions/6766833
复制相似问题