My new controller action:
controller do
layout 'active_admin'
def index
@pages = Page.all
end
end
After refresh the page i received:
undefined method `base' for nil:NilClass
render view_factory.layout
What should I do for fixing this?
I start rewriting controller action because i received this message for my index action:
undefined method `num_pages' for #<Array:0x0000000b860eb0>
render renderer_for(:index)
Maybe anyone know how fixing this?
The initial
undefined method 'num_pages' for #<Array:0x0000000b860eb0>may be occurring if you have an instance variable set in abefore_filterinApplicationControllerwith the plural name of a model as I did. The bug is reported here.