Sha256: 24b4b132e4f38cdd18189592295399a3f9f560f6336ee2b2cbf1a5355d12f4e1

Contents?: true

Size: 405 Bytes

Versions: 1

Compression:

Stored size: 405 Bytes

Contents

require './config/application'

app = {{app_name}}::Application.new

use Rack::ContentType

app.route do
  # default routes
  match "", proc { [200, {}, ["Congratulation! You're running a application based on Rhino-Framework"]] }
  match ":controller/:id/:action"
  match ":controller/:id",
    :default => { "action" => "show" }
  match ":controller",
    :default => { "action" => "index" }
end

run app

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rhino-framework-0.1.1 lib/rhino/generators/template_codes/config.ru.tt