Rails 3: button_to using https
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
精彩评论