padrino

    0熱度

    1回答

    獲取以下MongoMapper文檔。 class Schedule include MongoMapper::Document key :name, String key :description, String key :active, Boolean many :periods timestamps! userstam

    1熱度

    2回答

    我在DataMapper中使用Padrino,我試圖做一個向模型添加關聯的遷移。例如,我開始使用此: class User include DataMapper::Resource property :id, Serial property :name, String end class Post include DataMapper::Resour

    1熱度

    1回答

    我試圖使用Padrino的路由作爲基本Sinatra應用程序的獨立添加。 http://www.padrinorb.com/guides/standalone-usage-in-sinatra 主要的原因,我需要/想額外Padrino功能是我的路線分成多個控制文件的能力。 這是我可以做的事情,而不使用整個Padrino包?如果是這樣,我在哪裏放置單獨的控制器文件?我試過/controllers/m

    1熱度

    1回答

    如何配置ActiveRecord以在Padrino應用程序中使用partial_updates? Customer < ActiveRecord::Base after_update :check_name_change private def check_name_change if name_changed? # send mail not

    1熱度

    1回答

    我能夠使Rack::Session::DataMapper,Padrino和Omniauth一起工作。主要目標是在主應用程序和管理部分中擁有相同的會話和用戶,並且擁有非常持久的會話。選項set :sessions已被禁用,因此我修補/padrino-core-0.9.23/lib\padrino-core/application.rb:203use Rack::Flash if flash?不需要

    0熱度

    2回答

    gem update padrino-cache Updating installed gems Updating padrino-cache ERROR: While executing gem ... (Errno::EINVAL) Invalid argument - C:/Ruby192/lib/ruby/gems/1.9.1/gems/padrino-cache-0.9.25/

    6熱度

    1回答

    我讀http://www.padrinorb.com/guides/application-helpers但我不清楚每個視圖助手的用例是什麼。具體來說,content_for/yield_content, render/partial, capture_html, and concat_content如何合在一起? 現在我已經在我的控制器中使用了render 'my/view',並且在'my/vi

    1熱度

    2回答

    我使用Aptana作爲Padrino應用程序,但是我不知道如何在服務器運行時連接調試器。 我已經安裝了ruby-debug-ide gem和Aptana Firefox擴展。 什麼是正確的調試配置設置?另外,當我嘗試在Aptana中切換斷點時,我沒有得到標準的eclipse標記來表明它正在做某件事。

    0熱度

    1回答

    是否可以在不同的(已安裝的)應用程序中使用相同的佈局文件而Padrino上沒有一些駭人的解決方案(即sym鏈接)? 乾杯, 澤

    1熱度

    1回答

    有什麼好的方法來測試一個rspec控制器?實際上,我正在使用機架/測試來測試完整的輸出(包括渲染視圖)。 就拿以下最低控制: MyApp.controllers :cool_controller do get :index do some_var = DateTime.now render 'some_view', :locals => { :dont_know =