I have this classes.
user:
class User < ActiveRecord::Base
attr_accessible :email, :name
has_many :berichten
end
category:
class Category < ActiveRecord::Base
attr_accessible :name
has_many :berichten
end
Berichten :
class Berichten < ActiveRecord::Base
attr_accessible :bericht, :user
belongs_to :user
belongs_to :category
end
After that I created the projects.
But when I goto
http://localhost:3000/admin/berichtens
I see this message appear:
undefined method `user_id_contains' for #<MetaSearch::Searches::Berichten:0x007f72300bc8f0>
Can that be because berichten is a nested route which look like this :
Tamara::Application.routes.draw do
ActiveAdmin.routes(self)
devise_for :admin_users, ActiveAdmin::Devise.config
resources :users
resources :category do
resources :berichten
end
end
How to solve this ?
Roelof
Edit 1 : you can find the whole source tree here : https://github.com/roelof1967/tamara_site/tree/admin_section
Edit 2 : and here the development log : https://gist.github.com/3933601
Edit 3 : and here the controllers : https://gist.github.com/3937461
Since I am level 1 user so I can’t comment on above question. Please share your relevant controller code too. The problem is in the controller.