title: ActiveAdmin custom views which retain the ActiveAdmin layout
body: <p>I have a rails 3 app with the ActiveAdmin gem. My goal is to make a custom controller rendering in custom views which keep it layout.</p>
  
  <p>I succeeded to make a custom controller rendering in custom views with this code :</p>
  
  <p>pages.rb : </p>
  
  <pre><code>ActiveAdmin.register_page 'Pages' do
  
    content only: :index do
      render 'index'
    end
  
    content only: :edit do
      render partial: 'edit'
    end
  
    controller do
      def index
        @search = Page.includes(:translations).where("page_translations.locale='fr'").metasearch(params[:search])
        @pages = @search.page params[:page]
      end
  
      def edit
        @page = Page.find params[:id]
      end
    end
  end
  </code></pre>
  
  <p>And for example my index.html.erb file :</p>
  
  <pre><code>&lt;h1&gt;Pages&lt;/h1&gt;
  &lt;%= form_for @search, :url =&gt; admin_pages_path, :html =&gt; {:method =&gt; :get, :class =&gt; "form-inline" } do |f| %&gt;
    &lt;%= f.text_field :translations_name_contains , :class =&gt; "search-query input-medium focused" %&gt;
    &lt;%= f.submit("Search", :class =&gt; "btn btn-primary") %&gt;
  &lt;% end %&gt;
  
  &lt;table&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th&gt;&lt;%= sort_link @search, :translations_name, "Titre" %&gt;&lt;/th&gt;
        &lt;th&gt;&lt;%= sort_link @search, :permalink, "Permalien" %&gt;&lt;/th&gt;
        &lt;th&gt;Actions&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;% @pages.each do |page| %&gt;
        &lt;tr&gt;
          &lt;td&gt;&lt;%= page.name %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= page.permalink %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= link_to("Update",edit_admin_page_path(page)) %&gt;&lt;/td&gt;
        &lt;/tr&gt;
      &lt;% end %&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Is there a means to keep the ActiveAdmin layout ?</p>