padrino

    0热度

    1回答

    我正在学习使用haml的padrino,并在使用远程表单时遇到这种奇怪的行为。用于创建元素的部分像魅力一样工作,但更新后使用的部分以明文形式呈现。我敢肯定它是一个菜鸟的错误,但我似乎无法找到它。 #user.rb get :show, :with => :id do @user = User.get(params[:id].to_i) #REWRITE @posts = @u

    0热度

    1回答

    在Ruby on Rails中,您可以将访问控制头文件放置在Application Controller中。帕德里诺呢?你在哪里放置它们?我已经尝试将它们放在控制器的方法中,我需要使用不同的头文件和app.rb,但它不会锻炼...任何想法?

    1热度

    1回答

    我通过这个命令,通过Padrino启动的WEBrick服务器:padrino start 它侦听localhost,但我想用的WEBrick虚拟主机来改变这种行为对其他主机名等回答example.com。但padrino start没有这些选项。我如何将虚拟主机的详细信息传递给WEBrick?

    0热度

    1回答

    是否可以使用redis和Padrino相同的postgresql或mysql生成器。

    0热度

    1回答

    上传的文件我有这样的形式上传文件: -# coding: utf-8 - content_for(:body_classes, "body3") .content - form_tag url(:images, :create), :method => :post, :multipart => true do = file_field_tag :file = su

    2热度

    1回答

    我有以下型号 class TagType include DataMapper::Resource ## Relationships belongs_to :category has n, :tags ## Properties property :uuid, UUID, :key => true, :default => lambd

    0热度

    3回答

    这是我在我的Padrino应用程序中的代码,我找不到它是什么行或错误。该错误消息“语法错误,意想不到的keyword_end期待$结束” get :index, :provides => [:html, :json] do @title = "Restaurants" @restaurants = Restaurant.all case content_type

    0热度

    2回答

    我正在使用mongomapper将2个模型关联在一个对一的关系中。 我想在padrino管理部分的其他模型中显示一个模型的ID。 我正在尝试使用padrino表单的<%= f.select%>。模仿什么在轨道将是这样的东西这样的主动记录 请教关于padrino的形式f.select语法。

    3热度

    2回答

    运行在我的padrino应用bundle update给我: Bundler could not find compatible versions for gem "tilt": In Gemfile: padrino (= 0.11.1) ruby depends on tilt (~> 1.3.0) ruby padrino (= 0.11.1) r

    1热度

    1回答

    [另:我在“a concise recipe for installing, configuring and running minitest under autotest or Guard”中慢慢回答我自己的问题] 我的环境:Ruby 2.0。 Padrino 0.10.7。 Minitest 2.6.2。 RackTest 0.6.2。 简写:什么是扩展$ LOAD_PATH以包含我的测试目录