Created
July 16, 2011 05:48
-
-
Save jphpsf/1086055 to your computer and use it in GitHub Desktop.
Reuse of the Rails Admin layout for the whole application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/views/layouts/application.html.erb | |
<% head_style 'styles' %> | |
<% head_javascript 'application' %> | |
<%= render :file => 'layouts/rails_admin/main' %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
did you ever get this to work? I am very interested :)