Sha256: 80bf5c112e9d542670abd1940696a16a738d8b098196b6eeda5dfdddf99c52e6
Contents?: true
Size: 289 Bytes
Versions: 1
Compression:
Stored size: 289 Bytes
Contents
class PagesController < InheritedResources::Base def resource page_id = params[:id] || Layout.current[:default_page] if page_id.is_numeric? @page ||= Page.find(page_id) else @page ||= Page.where(["pages.title.tolower() = ?", page_id.downcase]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wheels-0.0.18 | app/controllers/pages_controller.rb |