我需要什么
当前示例:http://jsfiddle.net/2ecsjomz/5/
注意:
# app\views\devise\mailer\reset_password_instructions.html.erb
<p>Hello <%= @resource.email %>!</p>
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
<p><%= link_to 'Change my password', spree.edit_password_url(@resource, reset_password_token: @token) %></p>
<p>If you didn't request this, please ignore this email.</p>
<p>Your password won't change until you access the link above and create a new one.</p>
将始终留在左侧或model.DisplayAlerts = addAlert;
答案 0 :(得分:4)
将路径编码更改为以下内容:
// Build the path decription
p = "M" + pt1x + "," + pt1y +
" L" + (pt1x+pt2x)/2 + "," + pt1y +
" L" + pt2x + "," + pt2y ;