Rails 4 activeadmin - undefined local variable or method `view_factory' for :Arbre::Context -


i using activeadmin gem admin interface,now created new controller , added layout 'acitveadmin'

am getting below error

nameerror in meetingrooms#index  showing /home/amp/.rvm/gems/ruby-2.1.1@rails4.1/bundler/gems/active_admin-41d5176f3682/app/views/layouts/active_admin.html.arb 

where line #2 raised:

undefined local variable or method `view_factory' :arbre::context 

my controller is
app/controllers/meeting_rooms_controller.rb

class meetingroomscontroller < applicationcontroller   layout 'active_admin'   def index     @meeting_rooms = meetingroom.all       #render :layout => "active_admin"   end end 

can 1 please me.

i think should use controller block define actions.

https://github.com/activeadmin/activeadmin/blob/master/docs/8-custom-actions.md#modifying-the-controller

activeadmin.register meetingroom    controller     # code evaluated within controller class      def define_a_method       # instance method     end   end  end 

in controller block can use feature of inheritedresources. https://github.com/josevalim/inherited_resources#overwriting-actions


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -