这种形式在本地运行的某些原因,但现在当我将代码放在Digital Ocean droplet上时,提交按钮不再提交..它没有做任何事情,也没有去控制器。不确定是什么问题。部分代码如下:
<%= form_for(@amazon, url: amazon_index_path) do |f| %>
<div class="col-md-12 well"> <!-- This is the first well, and says take
up all the 8 rows we have-->
<div class="form-group">
<h4>Merchant Id</h4>
<div class="input-group input-group-lg">
<div class="input-group-addon border">
<span class="glyphicon glyphicon-user" aria-hidden="true"></span>
</div>
<%= f.text_field :merchant_id, :placeholder => "Merchant Id",
class: "form-control input-group-lg", required: true %>
</div>
</div>
<div class="form-group">
<h4>
Marketplace
</h4>
<div class="input-group input-group-lg">
<div class="input-group-addon border">
<span class="glyphicon glyphicon-globe" aria-hidden="true"></span>
</div>
<%= f.select :marketplace,
grouped_options_for_select(marketplace_listing),
{}, class: 'form-control input-group-lg' %>
</div>
</div>
<div class="form-group">
<h4>MWS Auth Token</h4>
<div class="input-group input-group-lg">
<div class="input-group-addon border">
<span class="glyphicon glyphicon-file" aria-hidden="true"></span>
</div>
<%= f.text_field :auth_token, hide_label: true,:placeholder => "MWS
Auth Token",
class: "form-control input-group-lg", required: true %>
</div>
</div>
<%= f.submit 'Save Profile', class: 'btn btn-green btn-lg btn-block' %>
</div> <!--this is the well and takes up the 8 columns -->
<% end %>
我刚刚在控制台中收到此错误:
enteReferenceError: ShopifyApp is not defined
ShopifyApp.ready(function(){r code here