Created
September 23, 2010 02:19
-
-
Save makevoid/592965 to your computer and use it in GitHub Desktop.
Serve static pages at almost rack speed - rails3
This file contains hidden or 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
| class PagesController < ActionController::Metal | |
| include AbstractController::Layouts | |
| include ActionController::Rendering | |
| append_view_path "#{Rails.root}/app/views" | |
| layout "application" | |
| def about | |
| render :about | |
| end | |
| end |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
also try ActionController::Base