Skip to content

Commit

Permalink
new: changes for ramaze 2009.05
Browse files Browse the repository at this point in the history
  • Loading branch information
yhara committed May 28, 2009
1 parent daac696 commit 68ca002
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions bin/tickets-server
@@ -1,11 +1,10 @@
#!/usr/bin/env ruby
require 'rubygems'
gem 'ramaze', '= 2009.03'
require 'ramaze'
require 'ramaze/setup'

module Tickets
VERSION = "0.1.0.3"
VERSION = "0.1.0.3rc"
end

# load config
Expand All @@ -32,6 +31,9 @@ require 'model/ticket'

# controllers
class MainController < Ramaze::Controller
map '/'
engine :Etanni

def index
Ticket.shake! if Ticket.needs_shaking?
end
Expand All @@ -43,7 +45,6 @@ end

class ConfigController < Ramaze::Controller
map '/config'
deny_layout :all

def board_size
"(xy . (#{Tickets::Config::BOARD_WIDTH} . #{Tickets::Config::BOARD_HEIGHT}))"
Expand All @@ -52,7 +53,6 @@ end

class TicktesController < Ramaze::Controller
map '/tickets'
deny_layout :all

def create
ticket = Ticket.new
Expand Down Expand Up @@ -101,7 +101,5 @@ class TicktesController < Ramaze::Controller
end

Dir.chdir(File.expand_path("..", File.dirname(__FILE__)))
Ramaze.setup do
option.port = Tickets::Config::PORT
end
Ramaze.start
Ramaze.start :port => Tickets::Config::PORT,
:root => Dir.pwd

0 comments on commit 68ca002

Please sign in to comment.