Sha256: c3f01c34c398b6a2895f7470ae43014e8b2af0de2919034fed57d7de5eadfb15

Contents?: true

Size: 380 Bytes

Versions: 4

Compression:

Stored size: 380 Bytes

Contents

Enlightenment::Engine.routes.draw do
  { :assets => :asset, :pages => :page }.each do |controller, as|
    match "#{controller}/:name" => "#{controller}#show",
      :as   => as,
      :name => /[a-z].*/,
      :via  => :get
  end

  match "pages(/?)" => "pages#show",
    :name => 'index',
    :via  => :get

  match "validations" => "validations#create",
    :via  => :post
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
enlightenment-0.0.1.pre.4 config/routes.rb
enlightenment-0.0.1.pre.3 config/routes.rb
enlightenment-0.0.1.pre.2 config/routes.rb
enlightenment-0.0.1.pre.1 config/routes.rb