Answer the question
In order to leave comments, you need to log in
Routing in Ruby on Rack?
Good day to all. I am writing a small web application. I haven't touched Sinatra and Rails yet.
In config.ru:
require 'rubygems'
require 'rack'
map '/index' do
require './index'
run Index.new
end
map '/about' do
require './about'
run About.new
end
map '/articles/:id' do
#тут выбираем статью по идентификатору
end
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question