gregbell/active_admin — Issue #640: how to use active admin layout in my some non-admin part of my application?
Author: sachin87
Created: 2011-10-18 08:33:07+00:00
State: open

class PracticesController < ApplicationController

layout "active_admin"

def index
end

end

it generates error message

undefined local variable or method `view_factory' for #<#:0xaec5d24>

Extracted source (around line #1):

1: render view_factory.layout

activeadmin (0.3.2) lib/active_admin/arbre/builder.rb:47:in `method_missing'
activeadmin (0.3.2) app/views/layouts/active_admin.html.arb:1:in `__home_sachin__rvm_gems_ruby_______p__gems_activeadmin_______app_views_layouts_active_admin_html_arb__247324487_93145730'
actionpack (3.1.1) lib/action_view/template.rb:144:in `block in render'
activesupport (3.1.1) lib/active_support/notifications.rb:55:in `instrument'
actionpack (3.1.1) lib/action_view/template.rb:142:in `render'
actionpack (3.1.1) lib/action_view/renderer/template_renderer.rb:52:in `render_with_layout'
actionpack (3.1.1) lib/action_view/renderer/template_renderer.rb:38:in `render_template'
actionpack (3.1.1) lib/action_view/renderer/template_renderer.rb:12:in `block in render'
actionpack (3.1.1) lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats'
actionpack (3.1.1) lib/action_view/renderer/template_renderer.rb:9:in `render'
actionpack (3.1.1) lib/action_view/renderer/renderer.rb:36:in `render_template'