Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rubygems'
- require 'ramaze'
- class Page
- def initialize(title, url)
- @title = title
- @url = url
- end
- attr_reader :title, :url
- end
- About = Page.new("About", "")
- Status = Page.new("Status", "Status")
- Community = Page.new("Community", "Community")
- Error = Page.new("Error", "")
- Menu = [About, Status, Community]
- class MainController < Ramaze::Controller
- map '/'
- layout 'default'
- def index; @page = About end
- def Status; @page = Status end
- def Community; @page = Community end
- def error; @page = Error end
- end
Add Comment
Please, Sign In to add comment