#new和#edit上的Active_admin错误

时间:2012-09-28 10:40:45

标签: ruby-on-rails-3 activeadmin

我在尝试访问托管上的#new或#edit操作时出错。在我的电脑上一切正常。

Started GET "/admin/operations/new" for 109.167.192.252 at 2012-09-27 15:45:37 +0400
Processing by Admin::OperationsController#new as HTML
  Rendered /home/z/.gem/ruby/1.9.1/bundler/gems/active_admin-e42acc0501ee/app/views/active_admin/resource/new.html.arb (43.9ms)
Completed 500 Internal Server Error in 53ms

ActionView::Template::Error (undefined method `call' for :silence:Symbol):
    1: insert_tag renderer_for(:new)
  app/admin/operations.rb:30:in `block (2 levels) in <top (required)>'

在active_admin中注册的任何模型都会收到此错误。有什么建议吗?

2 个答案:

答案 0 :(得分:1)

f.buttons有些不好,只需使用分数。

答案 1 :(得分:0)

听起来像是papperclip gem的问题,尝试添加:required =&gt;错误到你的papperclips输入

 e.g.
 f.input :photo, :required => false.....

的问候!