标签: ruby-on-rails-3
我想使用https协议链接到路由。
我正在尝试:
<%= button_to '', carts_path(:service_id => @service),:only_path => false, :protocol => 'https://', :class => "buy-btn"%>
但它仍然是http:// ...
答案 0 :(得分:0)
似乎已经回答了,试试这个:link_to with :protocol isn't working