padrino

    0熱度

    1回答

    時NoHandlerError 我已經得到使用Padrino和回形針地方時,每當我試着上傳圖片我得到的錯誤 Paperclip::AdapterRegistry::NoHandlerError 什麼錯的問題?

    3熱度

    1回答

    我使用Padrino,我想從URL中提取參數並在.erb模板中使用它們。 在我的應用程序的設置,我有: get '/testpage/:id' do userID = params[:id] render 'test/index' end 在我test/文件夾我有index.html.erb被渲染成功,對於像http://localhost:9000/testpage/h

    0熱度

    2回答

    我很難完成迄今爲止在過去一年沒有問題的任務。在我的機器上開發我的Ruby Padrino應用程序。我會用流浪漢。一旦流浪起來,我加載putty中的設置並執行「bundle exec padrino start -h 0.0.0.0」。這通常會導致環境負荷但是重新啓動我的電腦後,我現在收到此錯誤: RuntimeError: Rack config file `0.0.0.0` must have

    1熱度

    2回答

    我有一段時間讓omniauth-ldap能夠正常使用我們的AD服務器,我相信這是因爲我們的用戶名有我們的域名。 這將成功地連接到我們的LDAP服務器: ldapsearch -h ldap.ourdomain.com -b "dc=ourdomain,dc=int" -D "OURDOMAIN\username" -w <password> '(sAMAccountName=username)'

    0熱度

    1回答

    我試圖從我的Windows機器啓動我的Ruby項目,當我SSH進入我的流浪盒時,導航到工頭,然後嘗試運行foreman start我收到以下錯誤。 01:54:14 web.1 | started with pid 12002 01:54:15 web.1 | BUNDLE-EXEC(1) BUNDLE-EXEC(1) 01:54:15

    0熱度

    1回答

    我收到一個非常奇怪的錯誤,因爲它在瀏覽器中完美工作,即顯示帖子並顯示作者姓名。沒有錯誤。 但是,功能測試正在打破,我不知道爲什麼。這很奇怪。 posts_features_spec.rb: require 'spec_helper' require_relative '../support/spec_helper_methods' feature "Post Features" do

    2熱度

    1回答

    我有一個新的Padrino 0.13.1項目,我在AWS Elastic Beanstalk工作者實例上託管。工作者實例有一個cron作業,每隔5分鐘在我的Padrino應用程序中調用POST。 post :myroutine, :with => :myparams, :csrf_protection => false do # ... do some stuff status

    0熱度

    1回答

    我使用Sequel與Padrino及以下遷移提出的uninitialized constant Jsonb (NameError)錯誤: Sequel.migration do up do alter_table :same_table do add_column :not_working, Jsonb end end end 的creat

    -6熱度

    1回答

    我有一個從API調用的數組。返回的數據就像這樣(爲顯示目的而整理)。 [ { "MessageThreadID": 30044, "CustomerID": 433, "MessageType": 1, "Subject": "What is my account balance?", "OpenDate": "2015-12-

    0熱度

    1回答

    我正在關注來自railscast(http://railscasts.com/episodes/220-pdfkit)的教程,並在嘗試實現PDF鏈接時陷入困境。原來的代碼是: <p id="pdf_link"><%= link_to "Download Invoice (PDF)", order_path(@order, :format => "pdf") %></p> 不過,我使用HAML所