0

我正在使用命名空间路由来创建管理部分。

问题是,当我将未命名空间和工作的控制器移动到 /admin 命名空间时,我突然收到一个未定义的方法错误。

Showing 

/media/_portable_/appname/vendor/plugins/active_scaffold/frontends/default/views/_form_messages.html.erb where line #4 raised:

undefined method `errors' for :record:Symbol
Extracted source (around line #4):

1: <%= render :partial => 'messages' %>
2: 
3: <% unless @record.nil? %>
4:     <%= error_messages_for :record, :object_name => @record.class.model_name.human.downcase %>
5: <% end %>

路线.rb

 namespace :admin do 
    root :controller => 'dashboard', :action => "index"
    resources :dashboard, :users, :apps do
      as_routes
    end
    resources :admin_sessions, :only => [:new, :create, :destroy]
  end

有关如何解决此问题的任何帮助?

4

1 回答 1

0

https://github.com/vhochstein/active_scaffold/issues/closed#issue/57

于 2011-01-05T14:01:40.233 回答