Skip to content

Instantly share code, notes, and snippets.

@jphpsf
Created July 16, 2011 05:48
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jphpsf/1086055 to your computer and use it in GitHub Desktop.
Save jphpsf/1086055 to your computer and use it in GitHub Desktop.
Reuse of the Rails Admin layout for the whole application
# app/views/layouts/application.html.erb
<% head_style 'styles' %>
<% head_javascript 'application' %>
<%= render :file => 'layouts/rails_admin/main' %>
# app/helpers/application_helper.rb
module ApplicationHelper
# Because this app is based on rails_admin, we include the rails_admin
# application helpers as they are going to be needed by the rails_admin
# layout which we are reusing
include RailsAdmin::ApplicationHelper
end
@chewmanfoo
Copy link

did you ever get this to work? I am very interested :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment