Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save makevoid/592965 to your computer and use it in GitHub Desktop.

Select an option

Save makevoid/592965 to your computer and use it in GitHub Desktop.
Serve static pages at almost rack speed - rails3
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
@makevoid
Copy link
Author

also try ActionController::Base

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