Skip to content

Commit

Permalink
changes in routing
Browse files Browse the repository at this point in the history
  • Loading branch information
nikone committed Feb 24, 2015
1 parent 01a85f8 commit 0edc709
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions config.ru
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
require './config/application.rb'

map "/" do
run HomeController.action(:index)
end
app = Blog::Application.new

map "/pages" do
map "/about" do
run PagesController.action(:about)
end
app.route do
match "/", "home#index"
match "/pages/about", "pages#about"
match "/pages/info", "pages#info"

map "/info" do
run PagesController.action(:info)
end
match "/:controller/:action"
end

run Blog::Application.new
run app

0 comments on commit 0edc709

Please sign in to comment.