所以我試圖讓我的代碼來匹配條紋的JS例如: var stripe = Stripe('pk_test_REST_OF_MY_KEY');
下面是我.js.erb文件調用從右鍵行我的secrets.yml文件。當這使得我得到以下錯誤在瀏覽器控制檯Uncaught ReferenceError: pk_test_REST_OF_MY_KEY is not defined var stripe =
我有home_controller並且裏面有[:index, :process_img]動作。 我需要從行動:process_img獲得整個html源:index行動。需要訪問控制器中的代碼。 class HomeController < ActionController::Base
def index
end
def process_img
index_
文件上傳正常,並且表單提交通過Paperclip附件進行,但是它應該通過ajax呈現的部分顯示爲新頁面上的文本,取而代之渲染模態部分。否則,如果沒有回形針附件,表單也會正常通過,但部分通常也會呈現。這是在頁面上顯示的名稱,代碼文本: $("#actionEdit").html("Thank you, application received :) \n\n<br><br>\n\nYou will
問題:部分不會在ajax發佈請求後更新。 Create.js.erb不執行。我已將一個console.log消息添加到此文件,並且它永遠不會出現在控制檯中。 提交表格後,我看日誌,看看帖子已成功創建: Started POST "/runs" for 127.0.0.1 at 2017-04-11 08:57:25 -0700
Processing by RunsController#c