开发者

Rails 3: button_to using https

开发者 https://www.devze.com 2023-02-12 03:41 出处:网络
I want to link to a route using the https protocol. I\'m trying: <%= button_to \'\', carts_p开发者_如何学Cath(:service_id => @service),:only_path => false, :protocol => \'https://\', :cl

I want to link to a route using the https protocol.

I'm trying:

  <%= button_to '', carts_p开发者_如何学Cath(:service_id => @service),:only_path => false, :protocol => 'https://', :class => "buy-btn"%>

But it still goes to http://...


Already answered it seems, try this: link_to with :protocol isn't working

0

精彩评论

暂无评论...
验证码 换一张
取 消